Skip to main content
Glama

CodeCraft

Validate an automation script

validate_python
Read-only

Validates a Python automation script that runs OUTSIDE the game, on three axes: Python syntax (using the real interpreter), Minecraft commands embedded in the script (against the official command index), and the shape of the /connect WebSocket message envelope. For behavior pack scripts use validate_script instead — Python does not run inside a pack. The embedded command check is the most valuable one: a command written from memory can look syntactically fine and still do nothing in the game. Only strings starting with / are treated as commands. If syntax could not be checked, syntaxChecked is false in the result; ok:true alone does not mean the syntax is valid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe complete Python script content.
versionNoGame version under data/, e.g. 1.26.40 or 1.26.40.5. Defaults to the newest available version. Marketing numbers (26.40) are rejected.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only provide readOnlyHint=true, so the description carries the behavioral burden. It discloses that validation uses the real interpreter, checks embedded commands against the official index, validates the /connect envelope shape, and explains the important result nuance that ok:true alone does not guarantee valid syntax. This goes well beyond the structured annotations.

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?

The description is front-loaded with the core purpose, then covers exclusions and critical result semantics without fluff. Every sentence adds value, and the structure leads from what the tool does to when not to use it to the key caveat.

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 validation tool with no output schema and minimal annotations, this description is remarkably complete. It covers the three validation axes, the alternative tool, the command-detection rule, and the meaning of syntaxChecked, leaving an agent well-equipped to call it correctly.

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 adds meaningful context for the code parameter by clarifying that the script runs outside the game and that only strings starting with / are interpreted as commands, which helps an agent understand what content is expected.

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 names a specific verb (validates), a clear resource (Python automation script), and a precise scope (runs outside the game, across three named axes). It also explicitly distinguishes itself from validate_script, making it easy for an agent to select the right tool.

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 an explicit when-not-to-use rule: behavior pack scripts should go to validate_script instead, because Python does not run inside a pack. It also explains why the embedded command check matters and clarifies that only strings starting with / are treated as commands, giving practical selection and invocation guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool addresses a distinct stage or artifact: feasibility, schema/version/identifier lookup, and separate validation for commands, JSON, Python, TypeScript, plus a whole-pack review. The descriptions explicitly tell the agent when to call each, so boundaries are clear.

Naming Consistency5/5

All nine tool names follow a consistent verb_noun snake_case pattern, with get_/lookup_ for information retrieval and validate_/review_ for checking. The validate_* family is uniform and the remaining names are still predictable from their action.

Tool Count5/5

Nine tools is well-scoped for a Minecraft Bedrock pack assistance server: three lookup tools and six validation/review tools. Each covers a distinct artifact or stage without redundancy.

Completeness5/5

The set covers the full authoring workflow from feasibility and version/schema/identifier lookup to per-file validation and final pack-wide review. There are no obvious dead ends or missing lifecycle operations for the server's stated purpose.