Skip to main content
Glama

Search code

search
Read-onlyIdempotent

Locate code by meaning or keyword and return ranked file and line results, with exact-name definitions surfaced first.

Instructions

Find code by meaning or keyword: "where is...", "how does... work", "find the code that...". Returns ranked results with file and line range; the first three carry the whole function or class. Exact names in the query (parse_config RetryPolicy) bring their definitions first. For the full code of a cut result, call find_symbol.

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
limitNoMax results
queryYesWhat to find, in plain words or code terms

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.6

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and closed-world behavior, so the description correctly spends its words on result semantics instead: ranked ordering, file and line ranges, the first three results carrying a complete function or class, and exact identifiers being promoted. The absence of pagination or cost guidance for the `limit` parameter is a small remaining gap.

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?

The core capability and example queries are front-loaded, then result shape, then the sibling hand-off. Every clause carries information — no restatement of the title or of the annotation fields.

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 an output schema present and four strong annotations, the description need not explain return values or safety, and it still adds the ranking and truncation behavior an agent needs to interpret results correctly. Only the effect of `limit` and whether further results are reachable is left unaddressed.

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 a baseline of 3 is warranted, but the description earns more by clarifying what `query` accepts: natural-language questions or exact code names, with the specific consequence that embedded identifiers surface their definitions first. That is genuine interpretive meaning the schema's 'What to find, in plain words or code terms' does not convey.

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 gives a specific verb and resource ('Find code by meaning or keyword') and immediately anchors it with example query shapes ('where is...', 'find the code that...'). It also distinguishes itself from find_symbol by naming that sibling for the follow-up need, so an agent can tell the two apart without opening either schema.

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?

It shows the query phrasing that works and states a concrete condition for switching tools ('For the full code of a cut result, call find_symbol'). What's missing is any exclusion guidance in the other direction — when a semantic/keyword search is the wrong entry point versus starting from a known symbol.

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

Deploy Server

Other Tools