Skip to main content
Glama

find_definition

Read-onlyIdempotent

Jump to a symbol's definition by name. Uses AST for precision when the graph layer is enabled, otherwise falls back to BM25; each result indicates which method was used.

Instructions

Jump to where a symbol is defined, when you already know its name. AST-precise when the graph layer is on, BM25 fallback otherwise; each hit says which. Use search instead when you can only describe what the code does, and describe_symbol when you also want the callers and the tests in the same call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results.
sourceNoSource name. Omit when only one source applies.
symbolYesIdentifier, e.g. `MyClass` or `MyClass.handleClick`.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv1.9.0

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, and non-destructive behavior. The description adds valuable context about the AST-precise vs. BM25 fallback modes and that each hit indicates its source, which goes beyond the annotations without contradicting them.

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 description is concise, using two sentences to convey purpose, behavior, and usage guidance. It is well-structured with a clear flow and no unnecessary words.

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?

There is no output schema, so the description need not fully explain return values, but it does mention that 'each hit says which' mechanism was used. This gives a reasonable hint about the output. The description sufficiently covers the tool's context and edge cases (AST vs. BM25).

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?

The schema covers 100% of the parameters, and the descriptions are present but minimal (e.g., 'Max results', 'Source name', 'Identifier'). They clarify the data type and purpose but do not add much beyond the schema definitions. This is at the baseline expected for full 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 clearly states the tool's purpose: 'Jump to a symbol definition' and specifies the exact resource (symbol definitions) and the action (jump). It also distinguishes itself from sibling tools by naming 'search' and 'describe_symbol' explicitly.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool versus alternatives: 'Use `search` instead when you can only describe what the code does, and describe_symbol when you also want the callers and the tests in the same call.' This gives clear conditions for selection.

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

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/lorenzo-cambiaghi/LynxMCP'

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