Skip to main content
Glama

Search the project

search
Read-only

Finds or looks up where something is, where the project talks about something, or what was decided, agreed or is already on record about it: the documents, sections, tasks, notes and files that mention a subject, a person, a client or a contract, by their words, for checking a draft or a claim against what is written before it conflicts or repeats. Takes one to five queries, each with terms that must appear and terms that raise the rank (synonyms, other spellings, the other language if the project uses two). Files are found by their name and path, and text files by their words too. Returns § addresses ranked by the words and by how things link to each other, each with its kind, title, headline, author, date and length in tokens: 20 by default, 50 at most. It ranks what matters most and does not list every line that holds a string.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "reason": "<reason>",
      "queries": "<queries>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindsNoOnly these kinds. Default: all.
limitNoHow many results. Default 20.
sinceNoOnly things changed on or after this day, YYYY-MM-DD.
untilNoOnly things changed on or before this day, YYYY-MM-DD.
detailNofull, the default: each row with its § address, kind, title, headline, author, date and length in tokens. short: each row with its § address, title, headline, author and date.
reasonYesWhat you are looking for and why, in a sentence. Kept with the search.
foldersNoOnly these top-level folders, like research.
projectNoThe project's slug, from open_project, like acme. Not needed when a § address names the project, or when the person is on one project.
queriesYesOne to five phrasings of what is looked for. Each is ranked on its own and the rankings are fused by reciprocal rank, so what several phrasings find comes before what one finds; two to four phrasings in other words (other word forms, synonyms, the other language) find more in a large project than one.

Output Schema

NameRequiredDescriptionDefault
rowsYes
engineYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "full, the default: each row with its § address, kind, title, headline, author, date and length in tokens. short: each row with its § address, title, headline, author and date.",
      +  "enum": [
      +    "short",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / queries / description
      Added value: +"One to five phrasings of what is looked for. Each is ranked on its own and the rankings are fused by reciprocal rank, so what several phrasings find comes before what one finds; two to four phrasings in other words (other word forms, synonyms, the other language) find more in a large project than one."
    • addedInput schema / properties / until
      Added value: +{
      +  "description": "Only things changed on or before this day, YYYY-MM-DD.",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds real behavior beyond that: ranking semantics (reciprocal rank fusion across queries), result caps (20 default, 50 max), the returned field set, and the explicit caveat that it ranks rather than exhaustively listing matches — important for an agent judging recall.

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

Conciseness3/5

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

The core intent is front-loaded in the opening clause, but it is a dense run-on sentence with stacked clauses ("what was decided, agreed or is already on record") that slows parsing. The content is largely justified, yet tightening would improve scannability without losing information.

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

Completeness4/5

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

Covers the query construction model, ranking behavior, result limits, and returned fields, and has an output schema to carry the response shape. Minor gaps remain around pagination or how to page past 50 results and around required fields like reason, which the schema handles but the description never mentions.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds meaning beyond the schema by explaining how must/should interact across the one-to-five queries and why 2-4 rephrasings find more in a large project. It also clarifies that file matching is by name and path while text is matched by words.

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?

States a specific verb (finds/looks up) plus concrete resources (documents, sections, tasks, notes, files) and adds the distinctive intent — checking a draft or claim against what is on record. This clearly separates it from grep (literal match) and read (single item) siblings.

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

Usage Guidelines4/5

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

Explains the situation that selects this tool: verifying a draft or claim before it repeats or conflicts with what is written, and finding where things live. It does not explicitly name grep or what_changed as alternatives or state when not to use it, so it stops short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources