Skip to main content
Glama

gdscript_engine_api

Read-only

Retrieve authoritative Godot engine class and member documentation with signatures and defaults, ensuring accuracy for your specific editor version.

Instructions

Get authoritative documentation for a Godot ENGINE class or member, from the exact editor build in use. Returns: signature with argument names, types and defaults, plus documentation. USE THIS instead of recalling Godot's API from memory - it is the ground truth for the user's version and prevents inventing methods that do not exist. Pass 'member' for a specific method/property/signal; omit it to check a class exists.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
memberNoMethod, property or signal name
class_nameYesEngine class, e.g. CharacterBody2D
Behavior4/5

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

Annotations declare readOnlyHint and openWorldHint, which align with the description's read-only nature. Description adds that the tool provides ground truth from the exact editor build and prevents method invention. No contradictions. Could mention response format or performance implications but acceptable for a documentation lookup.

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 well-structured sentences covering purpose, return type, and usage advice. Front-loads the core function and provides actionable guidance without redundancy. Every sentence earns its place.

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?

Given no output schema, the description partially describes return values (signature details and documentation). It lacks details on response format (could be structured or plain text) but is sufficient for an API documentation tool. Context of siblings not needed for completeness.

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 descriptions already clarify each parameter (class_name as engine class name, member as method/property/signal name). Description adds valuable usage guidance: 'Pass member for a specific item; omit it to check a class exists.' This enhances understanding beyond schema alone. With 100% schema coverage, baseline 3, extra context justifies 4.

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?

The description clearly states the tool provides 'authoritative documentation for a Godot ENGINE class or member' from the exact editor build. It specifies return contents (signature with argument names/types/defaults, plus documentation) and distinguishes itself as ground truth versus recalling from memory.

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

Usage Guidelines4/5

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

Explicitly advises using this tool instead of recalling from memory to prevent inventing non-existent methods. Explains when to omit the 'member' parameter (to check class existence) versus when to pass it (for specific methods/properties/signals). However, it does not differentiate from sibling tools that also provide documentation-like info (e.g., gdscript_hover, gdscript_signature_help).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pzalutski-pixel/godotlens-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server