Skip to main content
Glama

search

Read-onlyIdempotent

Locate where indexed code or docs implement a behavior by describing it in plain words or naming expected identifiers, returning ranked file:line hits with code or signatures.

Instructions

Find where something happens in the indexed code and docs, by meaning and by name: describe it in plain words ('where the player picks a seat to enter'). Ranked file:line hits, the best with its code, the rest as signatures; a score near 0.03 is a strong match. Omit source to search every source. outline=true: signatures only.

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": {
      "query": "<query>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesWhat the code does, in plain words; a name works too.
top_kNoMax results; default from config.
sourceNoSource name, list of names, or omit for all sources, fused.
outlineNoSignatures only, no code.
file_globNoRestrict to paths matching this glob, e.g. `*.cs`.
extensionsNoRestrict to these extensions, e.g. ['.cs'].
identifiersNoNames you expect the code to use (guesses are fine), searched with the query.
path_containsNoRestrict to paths containing this substring.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changedv1.12.0
    • removedInput schema / properties / extensions / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / extensions / default
      Removed value: -null
    • addedInput schema / properties / extensions / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / extensions / type
      Added value: +"array"
    • removedInput schema / properties / file_glob / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / file_glob / default
      Removed value: -null
    • addedInput schema / properties / file_glob / type
      Added value: +"string"
    • addedInput schema / properties / identifiers
      Added value: +{
      +  "description": "Names you expect the code to use (guesses are fine), searched with the query.",
      +  "type": "string"
      +}
    • changedInput schema / properties / outline / description
      Previous value: -"Signatures only, no bodies: cheap triage for broad queries."New value: +"Signatures only, no code."
    • removedInput schema / properties / path_contains / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / path_contains / default
      Removed value: -null
    • addedInput schema / properties / path_contains / type
      Added value: +"string"
    • changedInput schema / properties / query / description
      Previous value: -"What the code does, in plain words, not an identifier."New value: +"What the code does, in plain words; a name works too."
    • changedInput schema / properties / source / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
    • removedInput schema / properties / source / default
      Removed value: -null
    • removedInput schema / properties / top_k / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / top_k / default
      Removed value: -null
    • addedInput schema / properties / top_k / type
      Added value: +"integer"
  2. Changed17 schema fields changedv1.9.0
    • changedInput schema / properties / extensions / description
      Previous value: -"Restrict results to these file extensions, e.g. `['.cs', '.shader']`."New value: +"Restrict to these extensions, e.g. ['.cs']."
    • removedInput schema / properties / extensions / title
      Removed value: -"Extensions"
    • changedInput schema / properties / file_glob / description
      Previous value: -"fnmatch glob to restrict results by path/filename, e.g. `*.cs` or `**/Editor/*`."New value: +"Restrict to paths matching this glob, e.g. `*.cs`."
    • removedInput schema / properties / file_glob / title
      Removed value: -"File Glob"
    • changedInput schema / properties / outline / description
      Previous value: -"If true, return each hit's signature + first doc line instead of its full body — cheap triage for broad queries or a large top_k. Scan the signatures, then read the one body you need (find_definition, or its file:line). Default false = full bodies, for when you'll use the code right away."New value: +"Signatures only, no bodies: cheap triage for broad queries."
    • removedInput schema / properties / outline / title
      Removed value: -"Outline"
    • changedInput schema / properties / path_contains / description
      Previous value: -"Keep only results whose file path contains this substring."New value: +"Restrict to paths containing this substring."
    • removedInput schema / properties / path_contains / title
      Removed value: -"Path Contains"
    • changedInput schema / properties / query / description
      Previous value: -"Natural-language description of the behavior to find (e.g. 'method that handles player damage calculation'), NOT an identifier — use grep for exact names."New value: +"What the code does, in plain words, not an identifier."
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • changedInput schema / properties / source / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / source / description
      Previous value: -"Source name from `list_sources`. Omit to use the default: all sources for `search`/`deep_search` (RRF-fused), or the single applicable source for the others."New value: +"Source name, list of names, or omit for all sources, fused."
    • removedInput schema / properties / source / title
      Removed value: -"Source"
    • changedInput schema / properties / top_k / description
      Previous value: -"Maximum number of results to return. Defaults to the server's configured value."New value: +"Max results; default from config."
    • removedInput schema / properties / top_k / title
      Removed value: -"Top K"
    • removedInput schema / title
      Removed value: -"_searchArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "_searchOutput",
      -  "type": "object"
      -}New value: +null
  3. Changed1 schema field changedv1.7.0
    • addedInput schema / properties / outline
      Added value: +{
      +  "default": false,
      +  "description": "If true, return each hit's signature + first doc line instead of its full body — cheap triage for broad queries or a large top_k. Scan the signatures, then read the one body you need (find_definition, or its file:line). Default false = full bodies, for when you'll use the code right away.",
      +  "title": "Outline",
      +  "type": "boolean"
      +}
  4. First observedv1.5.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description nonetheless adds real behavioral information that annotations cannot: the result shape (ranked file:line hits, best hit with code, rest as signatures) and how to read the score ('near 0.03 is a strong match'), which is essential calibration for an agent. It stops short of noting result limits or latency.

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?

Purpose is front-loaded in the first clause, then output format, then the two operational hints. Every sentence carries information; there is no filler or restated title.

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?

With eight parameters, no output schema, and no title, the description correctly takes on the job of describing return values and score interpretation, which is the biggest gap it could have left. Remaining gaps are minor: nothing about result truncation, ordering guarantees, or how docs results differ from code results.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all eight parameters, and most of the description's parameter text ('Omit `source`', 'outline=true: signatures only') restates what the schema says. The example phrasing for `query` adds a little meaning about how to formulate input, but this is close to baseline.

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

Purpose4/5

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

States a specific verb and resource ('Find where something happens in the indexed code and docs') plus the retrieval mode ('by meaning and by name'), with a concrete example query. It is clear what the tool does, but it never names a sibling (e.g. deep_search or find_definition) to sharpen the boundary, so differentiation is left to inference.

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

Usage Guidelines3/5

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

Usage is implied rather than prescribed: the plain-words example shows the intended query style, and 'Omit `source` to search every source' / 'outline=true: signatures only' are per-parameter hints. There is no explicit statement of when to prefer this over deep_search or find_definition, and no when-not guidance.

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