Skip to main content
Glama

Make a turning Zpup SVG

render_spin

Turn a JSON 3D scene into an SVG animation that rotates around one axis, viewable in an tag or README without JavaScript, plus PNG stills to preview each step.

Instructions

Makes an SVG that turns the scene forever about one axis, with no JavaScript in the file, so it plays inside an tag or a README. Returns PNG stills at even steps of the turn, so you can see what the animation shows. These files are large (tens to hundreds of KB), so pass save_to; the SVG text comes back only when it is small. A scene is plain JSON: { width, height, rotate?, children: [...] } with shapes such as dot, path, ellipse, rect, polygon, box, pyramid, cylinder, cone and hemisphere placed with translate and rotate (degrees). x is right, y is down, z is toward the viewer. Call get_reference once before writing a first scene. The server remembers the last valid scene: a later call can leave scene out to draw it again, or pass changes to edit it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "render_spin"
  }
}

Input Schema

NameRequiredDescriptionDefault
axisNoWhich view angle turns. Default "y", a turntable.
sceneNoThe scene: an object with width, height and children (JSON text of the same is accepted). Call get_reference for the full format. Leave it out to use the scene from the last valid call.
changesNoEdits to the remembered scene (or to scene, when both are passed), applied in order, so that a small fix does not need the whole scene again. Example: [{ "op": "set", "path": "children[2].translate.y", "value": -30 }, { "op": "append", "path": "children", "value": { "type": "dot", "stroke": 8, "color": "#333" } }, { "op": "copy", "path": "#tree", "value": { "id": "tree2", "translate": { "x": 60 }, "scale": 0.7 } }]. After a remove or insert, later items in that list have a different index, so give shapes an id and use "#id" paths. If the result is not valid, nothing is changed.
save_toNoAbsolute path ending in .svg to write the file to.
durationNoSeconds for one full turn. Default 8.
directionNo
keyframesNoAngles computed exactly, 4 to 720. More is smoother and larger. Default 36.
preview_sizeNoLonger side of the PNG in pixels. Default 512.
preview_framesNoHow many stills to send back, at even steps of the turn. Default 4 (0, 90, 180 and 270 degrees). Their default size is 256.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare openWorldHint=false and idempotentHint=false, so the description carries most of the behavioral weight and does well: it discloses the no-JavaScript constraint, that files run tens to hundreds of KB, that SVG text is returned only when small, that the server is stateful across calls, and that invalid change-sets leave the scene untouched. Remaining gaps are minor (no mention of how long generation takes or what a failed save looks like).

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?

It is front-loaded with the outcome and the no-JS/return-behavior facts before the scene format guidance. The scene-format sentence and the stateful-reuse sentence both earn their place, though the parenthetical catalog of shape types and the redundant emphasis on calling get_reference could be tightened.

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?

With nine optional parameters, no output schema and only two annotations, the description covers the important unknowns: output form (SVG file vs inline text vs PNG stills), size expectations, statefulness, and edit atomicity. It omits the timing/keyframe tradeoff and the error surface, but get_reference is correctly delegated to for full scene specifics.

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 high at 89%, putting the baseline at 3, but the description adds meaning the schema lacks: the coordinate convention (x right, y down, z toward the viewer) and the available shape types, plus the rationale for save_to. Duration, direction, keyframes and preview sizing are left entirely to the schema, which is acceptable given its coverage.

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 opens with a concrete verb+resource: it produces an animated SVG that rotates the scene continuously about one axis, JavaScript-free, and also returns PNG stills at even steps of the turn. That is a specific, distinctive artifact (a self-contained spinning SVG) that an agent can tell apart from a static-scene renderer or a sprite-sheet renderer without opening either schema.

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 real operational guidance: call get_reference once before authoring a first scene, pass save_to because files are large, and either omit scene to redraw the remembered one or pass changes to edit it. It doesn't name alternatives such as render_scene or explain when a still render is preferable to a spinning one, so it stops short of explicit routing.

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