Skip to main content
Glama

query

Locate where a concept is implemented in a repository by searching a keyword or partial symbol name, returning matching files and symbols for code discovery.

Instructions

Locate where a concept lives in the repo. Pass a keyword or partial symbol name and get back the files and symbols that match. Use this as the entry point to 'where is X implemented?'

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

Input Schema

NameRequiredDescriptionDefault
termYes
limitNo
repo_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden, and it does establish that matching is fuzzy ('keyword or partial symbol name') and that results are files plus symbols. It says nothing about read-only semantics, result ordering, or how the match is performed, and an output schema already covers return values, so this is adequate but not rich.

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?

Three short sentences, front-loaded with the action, then the input/output contract, then the use case. No filler and nothing buried.

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

Completeness3/5

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

For a simple read-only lookup with an output schema, the description covers the core contract, but with 0% schema coverage it should still explain what repo_path expects and what limit controls (default 20 suggests truncation behavior worth mentioning). Those omissions leave an agent guessing on two of three inputs.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters, so the description must compensate and it only partly does: it clarifies that 'term' accepts a keyword or partial symbol name, adding real meaning beyond the bare title 'Term'. 'repo_path' and 'limit' receive no explanation at all, leaving a third of the surface undocumented in both schema and prose.

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?

The description opens with a specific verb+resource ('Locate where a concept lives in the repo') and states the return shape ('files and symbols that match'), which is far more informative than the bare name 'query'. It implicitly separates itself from graph-oriented siblings like impact or find_path by framing itself as keyword/symbol lookup, though it never names an alternative explicitly.

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 gives a clear triggering question ('where is X implemented?') and positions itself as the entry point, which is actionable guidance for an agent starting a code-navigation task. It stops short of stating when not to use it or which sibling to pick instead once the entry point is exhausted.

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