Skip to main content
Glama

search

Find relevant files via full-text keyword query. Get ranked matches with highlighted excerpts, tags, and size info—snippets included, no follow-up reads required.

Instructions

Full-text (SQLite FTS5) keyword search across files. Returns ranked matches with inline match_excerpt and title_highlight (no follow-up read_file needed for snippets) plus tags, est_tokens, size_bytes, and aggregate total_est_tokens. Read-only; no side effects, auth, or rate limits. FTS is tokenised: it WILL miss URLs, hyphenated terms, and partial substrings — fall back to regex_search for those. project_id: null searches only the KB; omit the field to span everything; tags[] requires ALL listed tags to match. For prompt-ready bundled bodies use bundle_search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoFilter by tags (all must match)
queryYesSearch query
favoriteNoFilter by favorite status
project_idNoFilter by project ID. Pass null to search ONLY Knowledge Base files.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does so excellently: declares read-only status, no side effects/auth/rate limits, describes return fields (match_excerpt, title_highlight, total_est_tokens), and discloses FTS tokenization limitations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but well-structured; every sentence adds value. Front-loaded with core purpose, then limitations, parameter nuances, and alternatives. No fluff or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite no output schema, the description explains return fields and aggregate. Covers usage, limitations, parameter semantics, and alternatives, making it complete for a search tool of this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description adds significant meaning beyond schema: clarifies that `project_id: null` restricts to KB only vs omitted spans all, that all tags must match, and that no follow-up `read_file` is needed for snippets.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific action: full-text keyword search across files using FTS5. It distinguishes itself from siblings by explicitly naming `regex_search` and `bundle_search` as alternatives for different needs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit when-to-use guidance: fall back to `regex_search` for URLs/hyphenated terms/partial substrings, and use `bundle_search` for prompt-ready bundled bodies. Also explains project_id semantics (null vs omitted) and tag matching behavior.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/safiyu/kontexta'

If you have feedback or need assistance with the MCP directory API, please join our Discord server