Skip to main content
Glama

Slice a PNG into parts for rigging

riv_slice_image

Slice a character PNG into part images by polygon regions for cutout animation, returning each part's bounding box and a base image with parts removed.

Instructions

Cut polygon regions out of a character PNG for parts-based rigging (cutout animation). Writes each part as .png plus base.png (source with parts erased) into outDir, and returns each part's bbox for placement. Use with riv_create: images per part + groups as pivots.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
outDirYesDirectory to write part PNGs into
pngPathYesSource PNG path
regionsYes
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It clearly states that it writes part files and a base.png, mentions that base.png has parts erased, and says it returns bounding boxes for placement. Missing details like overwrite behavior and failure modes leave room for improvement, but the core side effects are well covered.

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 description is two sentences with no filler. The first sentence states the action and purpose, and the second explains outputs and integration. Every phrase adds value, and the structure front-loads the core purpose.

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 tool with no annotations, no output schema, and three parameters including a nested 'regions' array, the description does a solid job covering inputs, outputs, and return value. It could mention prerequisites (e.g., valid PNG, non-overlapping polygons) or error conditions, but it already conveys what the tool does, what it produces, and how it integrates with riv_create.

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?

The schema already documents most parameters (pngPath, outDir, polygon, keepInBase). The description adds meaningful semantics by explaining that the 'name' field becomes the filename for each part (<name>.png) and that output is meant for riv_create. This goes beyond the schema's bare property definitions, especially for the 'name' parameter which has no schema description.

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 uses specific verbs ('Cut polygon regions') and identifies the resource ('character PNG') and purpose ('parts-based rigging (cutout animation)'). It clearly distinguishes itself from the sibling tool riv_create by explaining how the output is consumed ('Use with riv_create: images per part + groups as pivots').

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?

The description gives clear usage context by explicitly recommending pairing with riv_create. It doesn't specify when not to use this tool or alternative slicing approaches, but the 'Use with riv_create' workflow provides strong guidance about the intended role in a rigging pipeline.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ODU33104/rive-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server