Skip to main content
Glama

What is wrong, and in which order to fix it

godot_doctor
Idempotent

Diagnose an unfamiliar or broken Godot project: run a review, load scripts and scenes when Godot is installed, group findings by cause with fixes and next steps, and return JSON.

Instructions

One call for a project you do not know yet, or when something is broken and you do not know where to start: runs the review and, when Godot is installed, loads every script and scene with Godot; groups the findings by cause (twenty findings from one missing file are one problem), most urgent first, each with its place, the lesson that explains it, the fix, and whether godot_fix or godot_migrate can do it; then numbered next steps. Also returns the problems as JSON. symptom ("helicopter bounces on the moving deck") adds the lessons for what you see. It changes no project files (Godot updates its cache in .godot/). For the full list use godot_review; for Godot's raw output godot_check.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "godot_doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoproject folder, or a file or folder inside it (relative to the server's folder; default: the current project)
filesNoonly problems in these res:// files
godotNorun Godot too when it is installed (default true)
limitNoproblems shown in full (default 12)
detailNobrief (capped lists) or full (everything); default full
symptomNowhat you see going wrong, in plain words

Output Schema

NameRequiredDescriptionDefault
okYes
nextYes
godotYes
errorsYes
overallYes
findingsYes
warningsYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.6.0
    • changedInput schema / properties / detail / description
      Previous value: -"brief: short output with capped lists; full: everything (default for this premium profile: full)."New value: +"brief (capped lists) or full (everything); default full"
    • changedInput schema / properties / path / description
      Previous value: -"The project folder, or any file or folder inside it (Godotwright walks up to project.godot). Relative paths start at the server's folder. Default: the current project."New value: +"project folder, or a file or folder inside it (relative to the server's folder; default: the current project)"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "errors": {
      +      "type": "number"
      +    },
      +    "findings": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "count": {
      +            "type": "number"
      +          },
      +          "file": {
      +            "type": "string"
      +          },
      +          "line": {
      +            "type": "number"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "rule": {
      +            "type": "string"
      +          },
      +          "severity": {
      +            "enum": [
      +              "error",
      +              "warning",
      +              "info"
      +            ],
      +            "type": "string"
      +          },
      +          "source": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "severity",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "godot": {
      +      "enum": [
      +        "ran",
      +        "not installed",
      +        "skipped",
      +        "failed"
      +      ],
      +      "type": "string"
      +    },
      +    "next": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "overall": {
      +      "type": "number"
      +    },
      +    "truncated": {
      +      "type": "number"
      +    },
      +    "warnings": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "errors",
      +    "warnings",
      +    "findings",
      +    "truncated",
      +    "godot",
      +    "overall",
      +    "next"
      +  ],
      +  "type": "object"
      +}
  2. Addedv0.2.2

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations it discloses consequential behavior: Godot is only invoked when installed, findings are deduplicated by cause (twenty findings from one missing file are one problem) and ordered by urgency, and each carries its location, explaining lesson, fix, and whether godot_fix or godot_migrate can apply it. It also reconciles the non-read-only annotation by stating it changes no project files but Godot updates its cache in .godot/ — a side effect an agent must know about. Only the return-shape detail is left thin, which is fine given the output schema exists.

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?

Front-loaded with the decision criterion and alternative routing, and nearly every clause carries information (grouping rule, ordering, Godot conditionality, cache side effect, JSON output). It is dense and clause-chained, making it slightly harder to scan than a bulleted phrasing would be, but there is no filler.

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

Completeness5/5

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

For a six-parameter, zero-required triage tool with an output schema, nothing an agent needs before calling is missing: it knows the trigger condition, that Godot is auto-detected, that files are untouched, that findings are grouped and ranked, and which downstream tool fixes them.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds value by explaining what `symptom` does semantically ('adds the lessons for what you see', with a concrete example) and by warning that sub-tools handle the actual remediation. It does not restate the other five parameters, which the schema already documents well.

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?

It names a specific verb-and-resource action (runs the review), what it produces (findings grouped by cause, most urgent first, numbered next steps, plus JSON), and explicitly separates itself from godot_review ('full list') and godot_check ('raw output'). The lead-in framing ('a project you do not know yet') makes its distinct role clear against 36 siblings.

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?

It gives explicit when-to-use conditions ('a project you do not know yet, or when something is broken and you do not know where to start') and names two concrete alternatives with the condition that selects each. It also states when `symptom` should be supplied ('what you see going wrong').

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