Skip to main content
Glama

nav_definition

Navigate to the definition of a code symbol using file, line, and column. Provides ground-truth results from the live language server.

Instructions

Ground-truth 'go to definition' from the live language server, always reflecting current on-disk contents. Use after orienting with map_search/map_neighbors, or directly when you already have an exact file:line:col (resolve(nodeId) gives you one from a map node ID).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colNo1-based column (UTF-16 units)
fileYesRepo-relative path, posix separators
lineYes1-based line
tokenBudgetNoMax tokens for the response. Lists are truncated to fit, with a note saying what was dropped and how to get it back.
Behavior3/5

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

No annotations are provided, so description carries full burden. Discloses that results are 'ground-truth' and current, and mentions tokenBudget truncation behavior. However, lacks details on auth, rate limits, or error cases.

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?

Two concise sentences with no redundant information. Front-loaded with purpose and usage guidance. Every sentence adds value.

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?

Parameters are fully described in schema, but output schema is absent. Description partially compensates by mentioning list truncation with tokenBudget, but does not specify return format or what the tool returns (e.g., location or list). Adequate but not complete.

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?

Schema covers 100% of parameters with descriptions. The description adds context about resolve(nodeId) for obtaining file:line:col, but does not substantially enhance understanding beyond the schema.

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?

Clearly states it performs 'go to definition' from the live language server, reflecting current on-disk contents. Distinguishes from sibling nav tools like nav_references and nav_callHierarchy.

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?

Explicitly says to use after map_search/map_neighbors or directly with exact file:line:col, and mentions resolve(nodeId) for obtaining that. Provides clear context but does not explicitly state when not to use.

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/LSDIPPOLLC/transcend-mcp'

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