Skip to main content
Glama

project_query

Read-onlyIdempotent

Find the best code locations for any question, ranked by relevance. Get plain-text summaries or structured JSON items for programmatic use.

Instructions

Where is X / what handles Y: the best code locations for a question, ranked by the passage index (BM25F + graph prior). format='text' (default): plain text, skeleton first (path:lines headers, call outlines, the matching lines), packed to 6000 chars, truncation stated; format='json': items with reasons, for programs. Read-only; hits are leads, not verified claims.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNo'text' (default): plain text for reading, skeleton first; 'json': structured items.text
questionYesQuestion, symbol or file names to look up.
max_itemsNoMaximum code locations to return (1-25).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the safety profile is covered. The description adds valuable behavioral context beyond annotations: results are ranked leads rather than verified claims, text output is truncated at 6000 chars with truncation stated, and output structure differs by format.

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

Conciseness4/5

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

The description is dense but efficient, with the core purpose front-loaded and format-specific details following. Every clause contributes information about behavior or output; it is not padded. It could be slightly more readable by splitting into shorter sentences, but no sentence is wasted.

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?

For a read-only search tool with three well-documented parameters and no output schema, the description covers the essential behavior: what is searched, how results are ranked, how each format behaves, truncation limits, and the caveat that hits are leads rather than verified claims. It might be marginally more complete with a concrete JSON item shape, but the current description is sufficient for correct invocation.

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?

The schema already documents all three parameters with enum and defaults, so the baseline is 3. The description adds meaning beyond the schema by explaining what the `format` values actually produce (skeleton-first plain text vs. items with reasons) and by clarifying that `question` can be a question, symbol, or file name.

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 verb and resource: it returns 'best code locations for a question', ranked by the passage index. It frames the use case as 'Where is X / what handles Y', which distinguishes it from sibling inspection/analysis tools like node_inspect and analyze.

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?

The description gives a clear context for when to use it (locating code relevant to a question) and even distinguishes human-readable text output from programmatic JSON output. However, it does not explicitly name alternative tools or state when not to use this tool, leaving sibling differentiation to inference.

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