Skip to main content
Glama

godot_get_api_docs

Fetches Godot 4.x API documentation for a class, method, or property, helping developers look up exact signatures and usage details.

Instructions

Get Godot 4.x API documentation for any class, method, or property.

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": {
      "class_name": "<class_name>"
    },
    "name": "godot_get_api_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodNoMethod name (optional)
propertyNoProperty name (optional)
class_nameYesGodot class (e.g., 'Node2D')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden; it makes clear this is a read-only documentation retrieval, which is inherently safe. However, it discloses nothing about the documentation source (bundled/offline vs. network), whether class names are case-sensitive, or what happens when a class or member does not exist.

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?

A single front-loaded sentence with no filler or repetition. It is efficient, though the terseness leaves room for one clarifying clause without becoming verbose.

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 3-parameter lookup tool with no annotations and no output schema, the definition is minimally adequate. It does not indicate what the response contains (signatures, descriptions, inheritance info), which matters more here because no output schema exists to describe it.

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%, so each parameter is already documented, giving a baseline of 3. The description restates the targets but does not explain the interaction semantics — e.g., whether supplying class_name alone returns a class overview while adding method or property narrows to a single member.

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 ('Get Godot 4.x API documentation') with the scope of targets ('any class, method, or property'). This implicitly separates it from project-docs and shader-docs siblings, though it never names them, so the differentiation is inferred rather than asserted.

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?

There is no when-to-use or when-not-to-use guidance. An agent is not told when to prefer this over godot_get_project_docs, godot_get_shader_docs, or godot_search_docs, nor whether it can be used to discover a class name if the exact name is unknown.

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