Skip to main content
Glama

godot_document_symbols

Extract all classes, functions, variables, and signals from a Godot file to map document structure and support code navigation and analysis.

Instructions

Get all symbols (classes, functions, variables, signals) in a file.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file": "<file>"
    },
    "name": "godot_document_symbols"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesFile path to analyze

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden; it implies a read-only query and constrains the result to four symbol categories, which is useful. It says nothing about parse/analysis behavior, behavior on a missing or non-code file, result ordering, or whether results are paginated.

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?

One short sentence, front-loaded with the verb and resource, with the parenthetical list earning its place by defining the symbol universe. No filler or redundancy.

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?

For a simple one-parameter read tool with no output schema and full schema coverage, the description is adequate but thin. Without an output schema, a note on the shape of returned symbol entries (name, kind, location) would have closed the remaining gap.

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 description coverage is 100% for the single 'file' parameter ('File path to analyze'), so the schema already does the work. The description adds no path format, relative-vs-absolute convention, or file-type restrictions beyond that.

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?

States a specific verb ('Get') and resource ('symbols in a file') and enumerates the symbol kinds (classes, functions, variables, signals), so the agent knows exactly what comes back. It does not explicitly contrast itself with the sibling godot_workspace_symbols, leaving the file-scope vs. workspace-scope distinction to inference from the words 'in a file'.

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?

The phrase 'in a file' plus the required single-file parameter implicitly signals this is the file-scoped alternative to a workspace-wide symbol lookup, which is reasonable guidance. There is no explicit statement of when to prefer this over godot_workspace_symbols or godot_find_symbol, and no prerequisites or error guidance.

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