Skip to main content
Glama

mc_kit_image

Convert SVG text or files to PNG, inspect image dimensions, embed images as data URIs, compose grids as editable SVG, and save outputs for Minecraft agent workflows.

Instructions

图像能力。SVG 是编辑语言:布局/画框/加文字(含中文)/拼网格都直接写 SVG 文本,再用这个工具光栅化成 PNG。 action: · info 看图的尺寸/格式(也能确认文件是不是能用的图) · embed 把图片变成 data URI + 现成 <image> 标签 —— 往 SVG 里引图必须这么做 · render SVG → PNG(可给 width/height/scale;svg 文本或 svgPath 二选一) · grid 把多张图按网格拼成可继续编辑的 SVG 文本(省掉重复写 N 个 和算坐标) · save 把 SVG 文本或 PNG 字节落盘 输出默认落 .mcp-mc-agent/.out/。图会直接内联给你;要留一份给别人看就写发布区 .mcp-mc-agent/.express/<子目录>/x.png,再用 mc_kit_express 取。

Input Schema

NameRequiredDescriptionDefault
gapNogrid:格子间距(默认 8)
outNo输出路径(render/save 用)
svgNorender:SVG 文本
cellNogrid:每格最长边(默认 256)
colsNogrid:列数(默认自动)
pathNo输入文件(info/embed 用)
pathsNogrid:要拼的图片路径(按顺序)
scaleNorender:倍率(2=两倍清晰度)
titleNogrid:整图标题
widthNorender:目标宽
actionNoinfo / embed / render / grid / save
heightNorender:目标高
labelsNogrid:每格标签(可中文)
svgPathNorender:SVG 文件路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral burden; it does disclose the default output directory, inline image return, and the publish area path. However, it does not explain overwrite behavior, error handling, or permission/rate constraints for save or render.

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 definition front-loads the key idea that SVG is the editing language, then uses a compact action list with no obvious filler. The length is justified by five actions, output behavior, and publish routing.

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?

For a 14-parameter multi-action tool with no annotations or output schema, the description covers each action's purpose and return/publish behavior well enough for selection and invocation. It still stops short of side-effect details for save/render and formal return shapes.

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, but the description adds useful action-level constraints such as svg and svgPath being mutually exclusive and width/height/scale being render options. Most individual parameters are still left to the schema, but the added routing semantics go beyond the structured fields.

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 states a concrete image toolkit and enumerates five specific actions (info/embed/render/grid/save), with SVG rasterization and grid composition as the core model. It also distinguishes the publish retrieval path by naming mc_kit_express, so the tool's role is clear against nearby siblings.

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?

It gives clear per-action guidance, including that embed is mandatory for referencing images inside SVG and that render takes either svg text or svgPath. It also explains the default output location and publish flow through mc_kit_express, though it does not explicitly say when not to use the tool overall.

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