Skip to main content
Glama

godot_format_file

Formats GDScript files and previews changes without modifying them by default; set dry_run to false to apply edits.

Instructions

Format a GDScript file. Preview changes without modifying by default.

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

Input Schema

NameRequiredDescriptionDefault
fileYesFile path to format
dry_runNoPreview only (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries full burden. It does disclose the single most important behavioral trait — that the operation is non-destructive by default because dry_run defaults to true — which is genuinely valuable. It stops short of saying what a preview returns (a diff? formatted text?), whether an actual format writes in place or produces a side file, and whether failure modes or syntax errors affect the file.

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 sentences, zero waste, with the safety-relevant default front-loaded immediately after the purpose statement. Nothing to trim and nothing buried.

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

Completeness4/5

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

For a two-parameter tool with full schema coverage and no output schema, the description covers purpose and the critical mutation-safety behavior. The remaining gap — what the preview output looks like and whether formatting writes in place — is modest but would help an agent interpret results.

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 coverage is 100%, so both parameters are already documented in structured fields. The description only reinforces the dry_run default ('without modifying by default'), which adds mild emphasis but no new semantics such as formatting style options or what 'file' accepts (relative vs. absolute, res:// paths). Baseline 3 applies.

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 and resource: 'Format a GDScript file.' An agent can distinguish it from godot_lint_file by the verb alone (format vs. lint). No further scope detail, but the core action is unambiguous.

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 the verb and the sibling set — reach for this when you want to reformat rather than diagnose. There is no explicit when/when-not guidance or named alternative (e.g., when to prefer godot_auto_fix over formatting), and no stated prerequisites such as the file needing to be valid GDScript.

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