Skip to main content
Glama
JSungMin

vs-token-safer

by JSungMin

goto_definition

Jump from a 0-based position to a symbol's definition, type definition, implementation, or declaration. Returns a token-capped file:line result for efficient code navigation.

Instructions

Jump from a 0-based position to a definition (semantic). kind: definition (default)|type_definition|implementation|declaration. → capped file:line. For usages, use find_references.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNodefinition (default)|type_definition|implementation|declaration.
lineYes0-based line.
pathYesSource file containing the symbol.
backendNo
characterYes0-based column.
maxResultsNo
projectPathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.37.3
    • removedInput schema / properties / backend / description
      Removed value: -"Backend override; auto-detected."
    • changedInput schema / properties / character / description
      Previous value: -"0-based character/column of the symbol position."New value: +"0-based column."
    • changedInput schema / properties / kind / description
      Previous value: -"definition (default) | type_definition | implementation | declaration."New value: +"definition (default)|type_definition|implementation|declaration."
    • changedInput schema / properties / line / description
      Previous value: -"0-based line of the symbol position."New value: +"0-based line."
    • removedInput schema / properties / maxResults / description
      Removed value: -"Result cap (60)."
    • removedInput schema / properties / projectPath / description
      Removed value: -"Project root (cwd)."
  2. Changed3 schema fields changedv0.29.2
    • changedInput schema / properties / backend / description
      Previous value: -"clangd|roslyn|typescript|pyright (auto)."New value: +"Backend override; auto-detected."
    • changedInput schema / properties / maxResults / description
      Previous value: -"Result cap (default 60)."New value: +"Result cap (60)."
    • changedInput schema / properties / projectPath / description
      Previous value: -"Project root (default cwd)."New value: +"Project root (cwd)."
  3. Changed4 schema fields changedv1.0.3
    • addedInput schema / properties / backend / description
      Added value: +"clangd|roslyn|typescript|pyright (auto)."
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "definition (default) | type_definition | implementation | declaration.",
      +  "type": "string"
      +}
    • addedInput schema / properties / maxResults / description
      Added value: +"Result cap (default 60)."
    • addedInput schema / properties / projectPath / description
      Added value: +"Project root (default cwd)."
  4. First observed

TDQS

A4.1/5.0
Behavior3/5

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

The description adds some behavioral context by noting the output is 'capped `file:line`', indicating a result limit and format. However, no annotations exist, and the description does not disclose error handling, permission requirements, or details about the cap (e.g., max results). This is adequate but minimal.

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 extremely concise: two sentences and a note. Every part is essential, and key information is front-loaded. No wasted words.

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 7 parameters, no output schema, and no annotations, the description falls short of full completeness. It does not explain the return value structure beyond 'file:line', nor does it cover optional parameters like projectPath, backend, or maxResults. However, for a focused navigation tool, the core behavior is captured.

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 description adds meaning to the 'kind' parameter by listing its options and default value. Other parameters (path, line, character, projectPath, backend, maxResults) are not elaborated beyond their schema descriptions. Since schema coverage is 57%, the description partially compensates but leaves gaps for non-kind parameters.

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 from a 0-based position to a definition (semantic)'. It distinguishes from sibling tool 'find_references' by explicitly stating 'For usages, use find_references'.

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 when-to-use context: navigation to definitions, type definitions, implementations, or declarations. It also gives a clear alternative for usages (find_references), guiding the agent on tool selection.

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