Skip to main content
Glama

Create directional sprites

createDirectionalSprites

Directional Sprites: render a 3D model into one spritesheet per direction, in a style. Pass the GLB in model (URL or base64; rigged, to animate it - see create3DModel with rig, or rigModel) and at most one animation: animation_url (the glb_url of an animation from animate3DModel or animate3DModelPreset, made for this model), preset_id (a preset from listAnimationPresets, retargeted onto the model; any rig type can take one, though retargeting does not succeed on every model, and when it does not the call returns an error) or model_animation (the name of an animation the GLB itself carries). With no animation each sheet is a single frame. directions are where the camera stands around a character facing S (up to 8); every direction is rendered together, on the same frame size, scale and floor, so the sheets line up. Pick the style with listDirectionalSpriteStyles (style_id, and style_params for its settings) and check it with previewDirectionalSprites first. The job result is one sheet per direction, in the order asked, each with its spritesheet_url, grid fields, fps and render_3d. Credits are held for every direction when the job is accepted and charged for the sheets that come back; a failed or cancelled job is refunded. Pass an optional request_id to tag the sheets for later retrieval via listGenerations (type spritesheet). Async generation job: returns {id, status} - poll getApiJob (job and credit contract: see the server instructions).

Credits: This endpoint consumes 1 credit per direction (one sheet each).

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": "createDirectionalSprites"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestBodyYesPayload for rendering a 3D model as directional sprite sheets

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 sheet per direction, in this order, rendered together on the same frame size, scale and floor so they line up. Default: [\"SW\"]."New value: +"Where the camera stands around a character facing S, each direction at most once. One sheet per direction, in this order, rendered together on the same frame size, scale and floor so they line up. 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, each sheet 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, each sheet 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. Changed1 schema field changed
    • addedInput schema / properties / requestBody / properties / save_normals
      Added value: +{
      +  "description": "Also make a normal map of each result, for 2.5D lighting, returned as its normal_map_url. These are the 3D model's own surface normals on the same pixels, not estimates, as a lossless WebP in the OpenGL convention (red = right, green = up, blue = towards the viewer; Unity and Godot read it as is, Unreal expects green flipped). Pixel styles get one normal per art pixel. 0.5 credits per map on top of the render; a map that could not be made is not charged, and its normal_map_url is absent. Default: false.",
      +  "example": false,
      +  "type": "boolean"
      +}
  4. 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."
  5. Changed1 schema field changed
    • addedInput schema / properties / requestBody / description
      Added value: +"Payload for rendering a 3D model as directional sprite sheets"
  6. 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."
  7. Added

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (which only say it writes, is non-idempotent and non-destructive), the description discloses the async job contract ({id, status} then poll getApiJob), the credit hold-then-charge model with refunds on failed/cancelled jobs, per-direction pricing, and the request_id dedupe behavior that partially offsets idempotentHint=false. Error codes for oversized files and invalid mirror combinations are also given. Minor gap: no note on how partial direction failures are reported in results.

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?

Purpose and the animation constraint are front-loaded, and the ordering (model → animation → directions → style → result → credits) mirrors the decision sequence. It is verbose in the directions passage, which retreads schema text, and the closing "Credits: 1 credit per direction" line duplicates the earlier credit sentence already in the body.

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 high-complexity, 20-property nested payload with no output schema, the description still explains what comes back (one sheet per direction in requested order with spritesheet_url, grid fields, fps, render_3d) and how completion is detected via getApiJob. Cost, failure, and refund semantics are covered, leaving no material gap for correct invocation.

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 baseline is 3, and the description does add cross-parameter meaning: the mutual exclusivity of the four animation sources, the requirement that every direction be given as an angle when mixing angles, and that all directions share frame size, scale and floor. It largely restates schema content for directions and style_params rather than adding more, capping it below a 5.

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?

"Render a 3D model into one spritesheet per direction, in a style" names the exact verb, resource, and output shape. It separates itself from previewDirectionalSprites (a check/preview step) and from stills tools by stating one sheet per direction. An agent knows precisely what it produces without opening the 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?

Explicit routing: pick a style via listDirectionalSpriteStyles, verify with previewDirectionalSprites first, source the model from create3DModel with rig or rigModel, and source animations from animate3DModel, animate3DModelPreset, or listAnimationPresets. Prerequisites (rigged model), exclusivity rules (at most one animation), and failure conditions (retargeting may fail and returns an error) are all stated.

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.