Skip to main content
Glama

godot_parse_ast

Parses GDScript files and returns structural analysis, enabling inspection of code organization, syntax, and declaration relationships.

Instructions

Parse GDScript and return structure analysis.

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_parse_ast"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesFile to parse

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure. It does not state whether parsing is read-only, how large files are handled, what happens on syntax errors, or what form the "structure analysis" output takes. For an analysis tool with zero annotation coverage, this is a meaningful gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short, front-loaded sentence with no wasted wording. Its brevity is a virtue structurally, though the terseness is a symptom of under-specification rather than disciplined concision.

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?

For a parser that returns an unspecified analysis structure, with no output schema and no annotations, the description should explain the shape or purpose of the returned structure and any error behavior. Neither is covered, so an agent cannot predict what it will get back.

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?

There is a single required parameter, and the schema documents it with 100% coverage ("File to parse"). The description adds nothing beyond that, which is acceptable when the schema is complete and the parameter is trivial, but it does not clarify accepted path formats or whether the file must be inside the project.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/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: "Parse GDScript and return structure analysis." It is clear that this tool works over GDScript source files. However, it gives no indication of how the resulting structural analysis differs from siblings such as godot_document_symbols or godot_analyze_dependencies, so an agent cannot tell them apart from the description alone.

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

Usage Guidelines2/5

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

The description says nothing about when to use this tool versus the many other analysis tools in the catalog. There are no prerequisites, no when-not conditions, and no named alternatives, leaving routing entirely to inference from sibling names.

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