Skip to main content
Glama

Re-pose sprite

generatePose

Re-pose an existing sprite into a new target pose while preserving the character, taking a source image (URL or base64), a pose name (or "Other" with a free-text description), and an optional n (1-4) for how many variations to produce. Only works with sprite image types (not icons, screenshots, etc.). The job result is an array of pose results, each containing the generated image url, the pose and description used, and a suggested motion_prompt tuned for that pose. Credits are held when the job is accepted and refunded if it fails or is cancelled; the charge scales with the number of images generated. This is typically the first step before animating: call generatePose to set the character's pose, then feed the result (and its suggested motion_prompt) into animateSprite for the best animation quality; use rotateSprite instead when you want to change the camera angle rather than the pose. Pass an optional request_id to tag the results so you can locate them later via listGenerations (type spritesheet). Async generation job: returns {id, status} - poll getApiJob (job and credit contract: see the server instructions).

Credits: This endpoint consumes 0.5 credits per result.

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

Input Schema

NameRequiredDescriptionDefault
requestBodyYesPayload for generating a new pose for an existing sprite

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / requestBody / properties / save_normals
      Added value: +{
      +  "description": "Also make a normal map of each image, for 2.5D lighting, returned as normal_map_url. It is a lossless WebP of the same size and alpha as the image, in the OpenGL convention (red = right, green = up, blue = towards the viewer; Unity and Godot read it as is, Unreal expects green flipped). Pixel art gets one normal per art pixel. Free; when a map could not be made, its normal_map_url is absent. Default: false.",
      +  "example": false,
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • removedInput schema / properties / requestBody / properties / augment_prompt
      Removed value: -{
      -  "description": "Rewrites your prompt behind the scenes into the form the model works best with. Leave it on (the default). Turning it off does not give you more control - it usually gives worse results. Do not disable it unless you really know what you are doing and have tested your prompts extensively. Default: true.",
      -  "example": true,
      -  "type": "boolean"
      -}
  3. Changed1 schema field changed
    • changedInput schema / properties / requestBody / properties / augment_prompt / description
      Previous value: -"Augment the prompt behind the scenes. Disable to have more control. Default: true."New value: +"Rewrites your prompt behind the scenes into the form the model works best with. Leave it on (the default). Turning it off does not give you more control - it usually gives worse results. Do not disable it unless you really know what you are doing and have tested your prompts extensively. Default: true."
  4. Changed1 schema field changed
    • changedInput schema / properties / requestBody / properties / request_id / description
      Previous value: -"Optional client-provided identifier, unique per request. Re-sending the same request_id returns the existing job instead of generating again. Also usable with the results endpoint."New value: +"Optional client-provided identifier, unique per request. Re-sending the same request_id returns the existing job instead of generating again. Also usable as the request_id filter of listGenerations."
  5. Changed4 schema fields changed
    • removedInput schema / properties / requestBody / properties / augment_prompt / default
      Removed value: -true
    • changedInput schema / properties / requestBody / properties / augment_prompt / description
      Previous value: -"Augment the prompt behind the scenes. Disable to have more control."New value: +"Augment the prompt behind the scenes. Disable to have more control. Default: true."
    • removedInput schema / properties / requestBody / properties / n / default
      Removed value: -1
    • changedInput schema / properties / requestBody / properties / n / description
      Previous value: -"Number of pose variations to generate (1-4)."New value: +"Number of pose variations to generate (1-4). Default: 1."
  6. Changed1 schema field changed
    • changedInput schema / properties / requestBody / properties / request_id / description
      Previous value: -"Optional client-provided identifier for this request. Use this to retrieve results later via the results endpoint."New value: +"Optional client-provided identifier, unique per request. Re-sending the same request_id returns the existing job instead of generating again. Also usable with the results endpoint."
  7. Changed2 schema fields changed
    • changedInput schema / properties / requestBody / properties / pose / enum
      Previous value: -[
      -  "World of Dinos",
      -  "World of Dinos",
      -  "World of Dinos"
      -]New value: +[
      +  "Idle (Front)",
      +  "Idle (Back)",
      +  "Idle (Left Facing)",
      +  "Idle (Right Facing)",
      +  "Walk (Left)",
      +  "Walk (Right)",
      +  "Walk (Towards the camera)",
      +  "Walk (Away from the camera)",
      +  "Run (Left)",
      +  "Run (Right)",
      +  "Run (Towards the camera)",
      +  "Run (Away from the camera)",
      +  "Crouching",
      +  "Crawling",
      +  "Sitting",
      +  "Defending / Blocking",
      +  "Attack Ready",
      +  "Jump Preparation",
      +  "Sleeping",
      +  "Flying",
      +  "Other"
      +]
    • changedInput schema / properties / requestBody / properties / pose / example
      Previous value: -"World of Dinos"New value: +"Idle (Front)"
  8. Changed2 schema fields changed
    • changedInput schema / properties / requestBody / properties / pose / enum
      Previous value: -[
      -  "Idle (Front)",
      -  "Idle (Back)",
      -  "Idle (Left Facing)",
      -  "Idle (Right Facing)",
      -  "Walk (Left)",
      -  "Walk (Right)",
      -  "Walk (Towards the camera)",
      -  "Walk (Away from the camera)",
      -  "Run (Left)",
      -  "Run (Right)",
      -  "Run (Towards the camera)",
      -  "Run (Away from the camera)",
      -  "Crouching",
      -  "Crawling",
      -  "Sitting",
      -  "Defending / Blocking",
      -  "Attack Ready",
      -  "Jump Preparation",
      -  "Sleeping",
      -  "Flying",
      -  "Other"
      -]New value: +[
      +  "World of Dinos",
      +  "World of Dinos",
      +  "World of Dinos"
      +]
    • changedInput schema / properties / requestBody / properties / pose / example
      Previous value: -"Idle (Front)"New value: +"World of Dinos"
  9. Changed1 schema field changed
    • addedInput schema / properties / requestBody / properties / request_id
      Added value: +{
      +  "description": "Optional client-provided identifier for this request. Use this to retrieve results later via the results endpoint.",
      +  "type": "string"
      +}
  10. Changed1 schema field changed
    • changedInput schema / properties / requestBody / properties / pose / enum
      Previous value: -[
      -  "Idle (Front)",
      -  "Idle (Back)",
      -  "Idle (Left Facing)",
      -  "Idle (Right Facing)",
      -  "Walk / Run (Left)",
      -  "Walk / Run (Right)",
      -  "Walk / Run (Towards the camera)",
      -  "Walk / Run (Away from the camera)",
      -  "Crouching",
      -  "Crawling",
      -  "Sleeping",
      -  "Flying",
      -  "Sitting",
      -  "Defending / Blocking",
      -  "Attack Ready",
      -  "Jump Preparation",
      -  "Other"
      -]New value: +[
      +  "Idle (Front)",
      +  "Idle (Back)",
      +  "Idle (Left Facing)",
      +  "Idle (Right Facing)",
      +  "Walk (Left)",
      +  "Walk (Right)",
      +  "Walk (Towards the camera)",
      +  "Walk (Away from the camera)",
      +  "Run (Left)",
      +  "Run (Right)",
      +  "Run (Towards the camera)",
      +  "Run (Away from the camera)",
      +  "Crouching",
      +  "Crawling",
      +  "Sitting",
      +  "Defending / Blocking",
      +  "Attack Ready",
      +  "Jump Preparation",
      +  "Sleeping",
      +  "Flying",
      +  "Other"
      +]
  11. Changed2 schema fields changed
    • changedInput schema / properties / requestBody / properties / pose / enum
      Previous value: -[
      -  "World of Dinos",
      -  "World of Dinos",
      -  "World of Dinos"
      -]New value: +[
      +  "Idle (Front)",
      +  "Idle (Back)",
      +  "Idle (Left Facing)",
      +  "Idle (Right Facing)",
      +  "Walk / Run (Left)",
      +  "Walk / Run (Right)",
      +  "Walk / Run (Towards the camera)",
      +  "Walk / Run (Away from the camera)",
      +  "Crouching",
      +  "Crawling",
      +  "Sleeping",
      +  "Flying",
      +  "Sitting",
      +  "Defending / Blocking",
      +  "Attack Ready",
      +  "Jump Preparation",
      +  "Other"
      +]
    • changedInput schema / properties / requestBody / properties / pose / example
      Previous value: -"World of Dinos"New value: +"Idle (Front)"
  12. Changed2 schema fields changed
    • changedInput schema / properties / requestBody / properties / pose / enum
      Previous value: -[
      -  "Idle (Front)",
      -  "Idle (Back)",
      -  "Idle (Left Facing)",
      -  "Idle (Right Facing)",
      -  "Walk / Run (Left)",
      -  "Walk / Run (Right)",
      -  "Walk / Run (Towards the camera)",
      -  "Walk / Run (Away from the camera)",
      -  "Crouching",
      -  "Crawling",
      -  "Sleeping",
      -  "Flying",
      -  "Sitting",
      -  "Defending / Blocking",
      -  "Attack Ready",
      -  "Jump Preparation",
      -  "Other"
      -]New value: +[
      +  "World of Dinos",
      +  "World of Dinos",
      +  "World of Dinos"
      +]
    • changedInput schema / properties / requestBody / properties / pose / example
      Previous value: -"Idle (Front)"New value: +"World of Dinos"
  13. Changed3 schema fields changed
    • changedInput schema / properties / requestBody / properties / pose / description
      Previous value: -"Target pose for the sprite. Common poses include: \"Idle (Front)\", \"Idle (Back)\", \"Idle (Left Facing)\", \"Idle (Right Facing)\", \"Walk / Run (Left)\", \"Walk / Run (Right)\", \"Walk / Run (Towards the camera)\", \"Walk / Run (Away from the camera)\", \"Crouching\", \"Crawling\", \"Sleeping\", \"Flying\", \"Sitting\", \"Defending / Blocking\", \"Attack Ready\", \"Jump Preparation\". You can also specify custom poses.\n"New value: +"Target pose for the sprite. Use the value \"Other\" to generate other poses not listed in the accepted values, and fill the field description accordingly."
    • addedInput schema / properties / requestBody / properties / pose / enum
      Added value: +[
      +  "Idle (Front)",
      +  "Idle (Back)",
      +  "Idle (Left Facing)",
      +  "Idle (Right Facing)",
      +  "Walk / Run (Left)",
      +  "Walk / Run (Right)",
      +  "Walk / Run (Towards the camera)",
      +  "Walk / Run (Away from the camera)",
      +  "Crouching",
      +  "Crawling",
      +  "Sleeping",
      +  "Flying",
      +  "Sitting",
      +  "Defending / Blocking",
      +  "Attack Ready",
      +  "Jump Preparation",
      +  "Other"
      +]
    • addedInput schema / properties / requestBody / properties / pose / example
      Added value: +"Idle (Front)"
  14. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the async job lifecycle, the {id, status} return shape, polling via getApiJob, credit holding/refunding, and the 0.5-credit-per-result charge. It also describes the result array fields, including the generated image URL and suggested motion_prompt.

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?

The description is front-loaded and nearly every sentence carries operational value. It is somewhat dense as a single long paragraph and repeats the credit-cost information, but it remains focused for a complex async generation tool.

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 complex async job with no output schema, the description supplies the missing return contract, polling instructions, credit behavior, input constraints, and the recommended next-step tool. An agent has enough context to invoke it correctly and handle its lifecycle.

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?

The nested schema has 100% description coverage, so parameter meaning is already well documented. The description reinforces image/pose/n usage and explains request_id's cross-tool lookup role, but it does not mention save_normals, so it adds only limited meaning beyond the schema.

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 explicitly states that it re-poses an existing sprite into a target pose while preserving the character. It also distinguishes the tool from siblings by naming rotateSprite for camera-angle changes and animateSprite for the following animation step.

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?

It gives clear when-to-use guidance: typically the first step before animating, then feed the result into animateSprite; use rotateSprite instead for camera-angle changes. It also states the sprite-only constraint and explains how request_id helps later lookup via listGenerations.

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.