Skip to main content
Glama

export_mcfunction

Exports a simulated world to Minecraft /setblock commands using relative coordinates from an origin and saves them as designs/.mcfunction for datapack or line-by-line use.

Instructions

Export the world as Minecraft /setblock commands (relative ~ coordinates from origin) and write designs/.mcfunction. Supports go first. Paste into a datapack function or run line by line in a real world.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
originNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations provided, the description carries the full disclosure burden. It does disclose the side effect (writes a file to designs/<name>.mcfunction) and the coordinate convention (relative ~ from origin), which is useful. However, it never says whether an existing file is overwritten, whether the whole world or a region is exported, or how errors surface.

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?

Two compact sentences with the core output format and destination front-loaded, and no redundant restatement of the title. The phrase 'Supports go first' is under-explained relative to its brevity cost.

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 two-parameter export tool with no annotations and no output schema, the definition covers the output format, coordinate system, and destination file, which is a reasonable core. It still omits overwrite semantics, export scope, and any failure behavior an agent would need before triggering a file-writing operation.

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 0%, so the description must compensate for both parameters. It does explain 'name' via the output path and 'origin' via the relative-coordinate framing, but leaves the origin default when omitted (presumably the world origin) and any naming constraints unstated.

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?

Names a specific verb and resource ('Export the world'), states the exact output artifact ('Minecraft /setblock commands') and writes to 'designs/<name>.mcfunction'. That format detail implicitly separates it from siblings like export_litematic, though it never names the 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 Guidelines2/5

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

The second sentence describes what to do with the produced file ('Paste into a datapack function or run line by line') rather than when to pick this export over export_litematic or save_design. 'Supports go first' is cryptic and gives no actionable selection guidance or exclusions.

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