Skip to main content
Glama

godot_generate_smart_code

Generate GDScript functions, classes, signal handlers, states, or resources from a name and parameters to scaffold Godot 4.x code without writing boilerplate.

Instructions

Generate code using AI-powered smart generation.

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": {
      "type": "<type>",
      "name": "<name>"
    },
    "name": "godot_generate_smart_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName
typeYesCode type
paramsNoParameters
optionsNoOptions

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

D1.7/5.0
Behavior1/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 and discloses nothing: not whether generated code is written to disk or returned, which files or scenes are affected, whether output overwrites existing code, nor that 'AI-powered' implies an external model dependency, cost, or latency.

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

Conciseness3/5

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

A single short sentence with no filler, and the verb is front-loaded. Brevity here is under-specification rather than economy, since the one sentence conveys essentially no actionable detail.

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

Completeness1/5

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

This is a code-generating tool with nested object parameters, no annotations, and no output schema, so the description must carry all behavioral and usage context — and it supplies none. An agent cannot call this correctly or safely based on the definition.

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% and the enum for 'type' is self-documenting, so the schema carries parameter meaning and baseline 3 applies. The description adds nothing for 'params' or 'options', which are described only as 'Parameters' and 'Options' in the schema despite being nested objects, but that gap originates in the schema rather than the description.

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

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The sentence restates the tool name: 'Generate code using AI-powered smart generation' adds no information beyond what 'generate_smart_code' already implies. It never says what kind of code (function, class, signal handler, state, resource), which is the key discriminator from siblings like godot_generate_feature or godot_generate_from_template.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no exclusions, and no mention of the several sibling generation tools (generate_feature, generate_from_template, generate_test, smart_complete). An agent has no basis in the description for choosing this tool over those alternatives.

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