Skip to main content
Glama

go_to_definition

Jump from a symbol position to its declaration or definition, returning the target file path, line, column, and an optional code snippet for precise code navigation.

Instructions

Jump from a symbol position to its declaration/definition. Returns target file path, line, column, and optional surrounding code snippet.

Input Schema

NameRequiredDescriptionDefault
lineYes
characterYes
file_pathYes
symbol_nameNo
include_snippetNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.2/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 behavioral burden. It does disclose what is returned (path, line, column, optional snippet), but does not mention LSP server dependency, behavior when no definition is found, or positional indexing conventions.

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, front-loaded sentences with no filler. The operation and return shape are stated immediately and nothing is wasted.

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

Completeness2/5

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

An output schema exists, but the input schema has no parameter descriptions and there are no annotations. For a five-parameter LSP tool, the description leaves out crucial invocation details such as position indexing and failure behavior.

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% for five parameters. The description does not explain file_path format, whether line and character are zero- or one-based, what symbol_name is for, or what include_snippet controls, so it does not compensate for the schema gap.

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 states a specific verb and resource: jump from a symbol position to its declaration/definition. It is clearly distinct from find_references and hover, though it does not explicitly name or contrast siblings.

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?

Usage is implied by 'from a symbol position', but the description gives no explicit when-to-use guidance, no alternatives such as hover or find_references, and no conditions under which this tool should be preferred.

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