Skip to main content
Glama

Preview directional sprites

previewDirectionalSprites

Preview Directional Sprites: a few frames of a 3D model in a style, from each direction asked for, to check a style before rendering. Takes the same model, animation, camera and style fields as createDirectionalSprites. The response (synchronous, not a job) has one preview per direction, in the order asked, each with frame_urls - the frames as images (4 for an animated model, 1 for a still one) - and render_3d, the style and settings as rendered, which createDirectionalSprites takes back as they are. Free (no credits), and nothing is saved to your generations; the frame images are kept for 7 days. A preview takes several seconds. You run one preview at a time: starting another while one is still running cancels the older one, which then answers 204 with no body. Preview one or two directions while trying styles and render only once the look is right.

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

Input Schema

NameRequiredDescriptionDefault
requestBodyYesPayload for previewing directional sprite frames of a 3D model

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / requestBody / properties / directions / description
      Previous value: -"Where the camera stands around a character facing S, each direction at most once. One preview per direction, in this order. Default: [\"SW\"]."New value: +"Where the camera stands around a character facing S, each direction at most once. One preview per direction, in this order. A direction is a compass name (S, SW, W, NW, N, NE, E, SE) or any angle in degrees on the same scale (S = 0, SW = 45, W = 90, N = 180, E = -90 or 270; angles wrap around), 60-degree steps for a hex grid, say. Angles use a slightly larger frame than the names: a request with any angle uses it for all its directions, so give every direction as an angle when they must line up. Default: [\"SW\"]."
    • addedInput schema / properties / requestBody / properties / directions / items / description
      Added value: +"A compass name (S, SW, W, NW, N, NE, E, SE) or an angle in degrees."
    • removedInput schema / properties / requestBody / properties / directions / items / enum
      Removed value: -[
      -  "S",
      -  "SW",
      -  "W",
      -  "NW",
      -  "N",
      -  "NE",
      -  "E",
      -  "SE"
      -]
    • removedInput schema / properties / requestBody / properties / directions / items / example
      Removed value: -"S"
    • removedInput schema / properties / requestBody / properties / directions / items / type
      Removed value: -"string"
    • changedInput schema / properties / requestBody / properties / perspective / description
      Previous value: -"Camera height, from the side (horizon) to straight down (top). Default: \"isometric\"."New value: +"Camera height: a name - horizon (0 degrees), low (15), isometric (35.264), high (60) or top (80) - or any number of degrees above the horizon from 0 (side view) to 90 (straight down), to match a game's own camera (53.13, say). Every direction of one height shares a frame; different heights do not. Default: \"isometric\"."
    • removedInput schema / properties / requestBody / properties / perspective / enum
      Removed value: -[
      -  "horizon",
      -  "low",
      -  "isometric",
      -  "high",
      -  "top"
      -]
    • removedInput schema / properties / requestBody / properties / perspective / type
      Removed value: -"string"
  2. Changed6 schema fields changed
    • addedInput schema / properties / requestBody / properties / animation_id
      Added value: +{
      +  "description": "The id of one of the account's generated animations (from createAnimation or listMyAnimations), retargeted onto the model like a preset. At most one of animation_url, preset_id, animation_id and model_animation; an animation that is not on the account returns HTTP 404.",
      +  "type": "string"
      +}
    • changedInput schema / properties / requestBody / properties / animation_url / description
      Previous value: -"An animation for the model, as a URL or base64-encoded GLB file - the glb_url of an animation from animate3DModel or animate3DModelPreset, made for this model's skeleton. At most one of animation_url, preset_id and model_animation. Up to 30MB; a larger file is rejected with HTTP 400."New value: +"An animation for the model, as a URL or base64-encoded GLB file - the glb_url of an animation from animate3DModel or animate3DModelPreset, made for this model's skeleton. At most one of animation_url, preset_id, animation_id and model_animation. Up to 30MB; a larger file is rejected with HTTP 400."
    • removedInput schema / properties / requestBody / properties / crop_loop
      Removed value: -{
      -  "description": "With preset_id, trim the preset to the span that loops seamlessly. Omit to follow the preset's own loop flag.",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / requestBody / properties / mirror
      Added value: +{
      +  "description": "With preset_id or animation_id, play the move on the other side, left and right swapped. Sending it with any other animation, or with none, returns HTTP 400. Off unless set to true.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / requestBody / properties / model_animation / description
      Previous value: -"The name of an animation the GLB itself carries. At most one of animation_url, preset_id and model_animation; with none, the preview is a single frame."New value: +"The name of an animation the GLB itself carries. At most one of animation_url, preset_id, animation_id and model_animation; with none, the preview is a single frame."
    • changedInput schema / properties / requestBody / properties / preset_id / description
      Previous value: -"An animation preset id from listAnimationPresets, retargeted onto the model. Any rig type can take one; when the preset cannot be retargeted onto the model, the call returns an error. At most one of animation_url, preset_id and model_animation."New value: +"An animation preset id from listAnimationPresets, retargeted onto the model. Any rig type can take one; when the preset cannot be retargeted onto the model, the call returns an error. At most one of animation_url, preset_id, animation_id and model_animation."
  3. Changed2 schema fields changed
    • changedInput schema / properties / requestBody / properties / animation_url / description
      Previous value: -"An animation for the model, as a URL or base64-encoded GLB file - the glb_url of an animation from animate3DModel or animate3DModelPreset, made for this model's skeleton. At most one of animation_url, preset_id and model_animation."New value: +"An animation for the model, as a URL or base64-encoded GLB file - the glb_url of an animation from animate3DModel or animate3DModelPreset, made for this model's skeleton. At most one of animation_url, preset_id and model_animation. Up to 30MB; a larger file is rejected with HTTP 400."
    • changedInput schema / properties / requestBody / properties / model / description
      Previous value: -"The 3D model, as a URL or base64-encoded GLB file (not an AI model name). Rigged, to animate it."New value: +"The 3D model, as a URL or base64-encoded GLB file (not an AI model name). Rigged, to animate it. Up to 30MB; a larger file is rejected with HTTP 400."
  4. Changed1 schema field changed
    • addedInput schema / properties / requestBody / description
      Added value: +"Payload for previewing directional sprite frames of a 3D model"
  5. Changed1 schema field changed
    • changedInput schema / properties / requestBody / properties / preset_id / description
      Previous value: -"An animation preset id from listAnimationPresets, retargeted onto the model. The model needs a humanoid_template or humanoid_template_hands rig. At most one of animation_url, preset_id and model_animation."New value: +"An animation preset id from listAnimationPresets, retargeted onto the model. Any rig type can take one; when the preset cannot be retargeted onto the model, the call returns an error. At most one of animation_url, preset_id and model_animation."
  6. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only give generic hints (readOnlyHint=false, idempotentHint=false, destructiveHint=false); the description adds the material behaviour: synchronous rather than a job, no credit cost, nothing persisted to generations, frames retained 7 days, a multi-second duration, and a one-at-a-time constraint where starting a second preview cancels the first and returns 204 with no body. That cancellation rule is exactly the kind of operational detail annotations cannot express.

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?

Front-loaded with purpose, then behaviour, then the recommended usage pattern; sentences are dense but each carries distinct information. Some clauses are run-on (the cancellation and 204 detail sits inside a long sentence), and the return-shape sentence is long, but there is no filler.

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 19-field nested request with no output schema, the description still covers what comes back (one preview per direction in request order, each with frame_urls and render_3d), cost, persistence, retention, latency, and concurrency limits. An agent has everything needed to call it correctly and interpret the result.

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 description coverage is 100%, so the parameter bodies (model, directions, perspective, animation sources, target_frame_size, style_params) are already documented in depth. The description adds a cross-tool equivalence ('same model, animation, camera and style fields as createDirectionalSprites') and notes that render_3d is passed back verbatim to the render tool, but contributes little parameter-level detail beyond the schema. Baseline 3 applies.

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?

States a specific verb and resource plus scope: 'a few frames of a 3D model in a style, from each direction asked for, to check a style before rendering.' This immediately separates it from createDirectionalSprites (the final render) without the agent needing to open 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 Guidelines5/5

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

Gives explicit when-to-use guidance ('Preview one or two directions while trying styles and render only once the look is right') and names the alternative to use for the real render (createDirectionalSprites). It also frames the tool as sharing the same input fields as the render tool, which tells the agent the preview is a dry run.

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.