Skip to main content
Glama

generate

Create sprite frames with any Replicate model from prompts or a source image, then ingest raw outputs into pixel art for Aseprite animation workflows.

Instructions

Generate frames with any Replicate model (env REPLICATE_API_TOKEN), then clean them into pixel art with ingest. describe=true: list the model's inputs first. image: your sprite rendered upscaled on a solid background, sent as the model's image input (auto-detected field). prompts: one prediction per prompt (e.g. per pose), run in parallel. Raw outputs are kept in outDir so you can re-ingest without paying again. Videos need ffmpeg. Ideas: retro-diffusion/rd-animation (pixel animation), black-forest-labs/flux-kontext-pro (pose edit per prompt), image-to-video models.

Input Schema

NameRequiredDescriptionDefault
imageNo
inputNomodel inputs
modelYesowner/name or owner/name:version
ingestNoingest args: path, reference, tag, align, height, palette, sheet...
outDirNo
previewNoreturn preview image
promptsNo
describeNo
imageFieldNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses the required env token, that prompts run in parallel (cost/time implication), that raw outputs are retained in outDir so re-ingest avoids paying again, that image is upscaled onto a solid background before sending, and that imageField is auto-detected. It does not cover failure modes, rate limits, or what happens on partial batch failure.

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 the core action and credential requirement, then parameter-specific notes in short clauses. Dense but telegraphic fragments ('Videos need ffmpeg. Ideas: ...') cost some readability, though almost every clause carries information.

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 9-param, nested-object tool with no output schema and no annotations, the description covers the external dependency, cost model, output retention, the ingest handoff, and model selection. An agent has enough to invoke it correctly on the first attempt.

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 44% across 9 params, so the description must compensate, and it largely does: describe, image, prompts, outDir, imageField (auto-detected field), input (model inputs) and ingest are all explained, including the nested image rendering behavior. Only preview is left unexplained, keeping it below 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: generate frames with any Replicate model, then clean them into pixel art via ingest. It names a sibling (ingest) as the downstream step and implicitly separates itself from create_sprite/draw by being model-driven. The generic name 'generate' is only disambiguated by the description body, not the first clause.

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?

Gives concrete operational guidance: set REPLICATE_API_TOKEN, use describe=true to list a model's inputs first, one prediction per prompt for per-pose batches, and ffmpeg for video. It offers example model IDs matched to use cases (pixel animation vs pose edit). No explicit when-not-to-use or comparison against create_sprite/animate, so it falls short of 5.

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