Skip to main content
Glama

game_eval

Evaluates GDScript expressions or statement blocks against the live SceneTree, returning results and diagnostics for runtime script checks.

Instructions

Evaluate a GDScript expression or statement block against the live SceneTree and return the result and diagnostics.

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": {
      "code": "<code>"
    },
    "name": "game_eval"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
timeoutMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and for an arbitrary-code-evaluation tool that is a significant gap. It never states that evaluated code can mutate live game state, whether execution is sandboxed, what happens on a runtime error, or how diagnostics are surfaced — it only says 'return the result and diagnostics'.

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 well-formed sentence with the action and context front-loaded and no filler. It is efficient, though its terseness is part of why behavioral and timeout details are missing.

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

Completeness2/5

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

For an eval tool with no annotations and no output schema, the description should cover side-effect risk, error/timeout behavior, and scope of the live tree it sees. It covers only input domain and a vague return statement, leaving an agent unable to judge safety or failure modes before calling.

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

Parameters2/5

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

Schema description coverage is 0% for both parameters. The description partly compensates for `code` by characterizing it as an expression or statement block, but `timeoutMs` is never mentioned — no default, units beyond the name, or guidance on when to raise it. Half the parameters remain unexplained in both schema and description.

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?

The description names a specific verb ('Evaluate'), a specific input domain ('GDScript expression or statement block'), and the execution context ('against the live SceneTree'), plus what comes back ('result and diagnostics'). This distinguishes it from siblings like run_headless_script by implying live-tree execution, though it never names an alternative explicitly.

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 'live SceneTree' context — an agent can infer this is the tool for poking at runtime state — but there is no explicit when-to-use statement, no when-not, and no differentiation from run_headless_script or project_diagnostics. The agent must infer routing from the phrasing alone.

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