Skip to main content
Glama

symbol_lookup

Resolve a symbol name to its definition in Rust, TypeScript, Kotlin, C, C++, Python, or Swift with exact or fuzzy matching. See signatures, locations, and bound memories to disambiguate before graph or read calls.

Instructions

Resolve a symbol name (or ref/id) to its definition(s) in Rust, TypeScript, Kotlin, C, C++, Python, or Swift — exact or fuzzy. Returns candidates with signatures, locations, logical-symbol grouping (cfg variants), and any bound repo memories. Use to disambiguate before a graph or read call. Generated bindings (codegen, ubrn FFI output) are excluded by default; pass include: ["generated"] to see them. A candidate whose symbol has distilled decision records carries them as distilled_records (labeled unreviewed, capped at 2; empty for almost every symbol).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
refNo
langNo
limitNo
symbolNo
includeNoWhat to include: `memories` (on by default) and/or `generated` (off by default — opts generated bindings back into the results). Pass `include: []` to suppress memories.
worktreeNoAbsolute path to a linked git worktree you're working in; serves that worktree's branch overlay over the indexed checkout. Omit (or pass an unrelated path) for the indexed checkout.
allow_ambiguousNo
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the search can be exact or fuzzy, returns candidates with signatures, locations, grouping, and memories, and that generated bindings are excluded by default. It also mentions distilled records. However, it does not state whether the tool is read-only or idempotent, which would be helpful for an agent.

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 a single paragraph with no wasted words, covering essential information. It front-loads the main action. However, it could be more structured (e.g., separating output details) to improve readability, but it remains efficient.

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?

Given the complexity (8 parameters, no output schema, many siblings), the description covers the main purpose and output format partially (candidates with signatures, locations, etc.). It does not explain the return format in detail, nor does it address edge cases or error conditions. It is sufficient but not comprehensive.

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 only 25%, but the description adds minimal detail beyond the schema. It explains the 'include' parameter behavior (generated bindings) but does not clarify 'id', 'ref', 'lang', 'limit', 'symbol', 'worktree', or 'allow_ambiguous'. The example 'include: ["generated"]' is helpful, but overall, the description fails to compensate for the low schema coverage.

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 starts with a clear verb ('Resolve') and resource ('symbol name or ref/id to its definition(s)'), lists supported languages, and distinguishes from sibling tools by stating it is for disambiguation before graph or read calls. It fully communicates the tool's function.

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?

The description explicitly says 'Use to disambiguate before a graph or read call,' providing clear context. It also explains the default exclusion of generated bindings and the option to include them. However, it does not specify when not to use this tool or mention any alternatives among the many sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cq27-dev/rag-rat'

If you have feedback or need assistance with the MCP directory API, please join our Discord server