Skip to main content
Glama

apply_transform

Idempotent

Apply image transform recipes to one or more revisions, producing new derived versions at full resolution. Supports batch processing up to 64 images with per-item error handling.

Instructions

Apply a transform recipe at full resolution and issue a new revision. Pass either recipe ({"operations": [...]}, applied in order, at most one "encode" and it must be last) or preset (a built-in named recipe) - exactly one of the two - and either revision_id (one image) or revision_ids (the same recipe over a batch of up to 64; one failure does not abort the rest). Call list_operations for the operation catalog and the preset names, explain_operation for one operation's full schema. Idempotent: the same (revision_id, resolved recipe) returns the existing derived revision; a preset hashes identically to the equivalent raw recipe. Note: if the recipe's encode format is png, webp, or avif, any ICC color profile on the source is dropped (embedding is only supported for jpeg output); this is reported as a warning, not an error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
presetNoビルトインプリセット名(`list_operations` の presets セクション参照)。 指定するとそのプリセットのレシピが使われる。`recipe` とは排他。
recipeNo変換レシピ。`{"operations": [...]}`。`preset` とはどちらか一方のみ指定する。
revision_idNo入力 revision ID("rev_...")。`revision_ids` とは排他で、どちらか一方が必須。
revision_idsNo同じレシピを複数 revision に適用する(1..=64 件)。`revision_id` とは排他。 1件が失敗してもバッチは中断せず、その要素に error が入る。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses meaningful behavioral traits: idempotent behavior with existing derived revisions, preset-to-recipe hash equivalence, ICC color profile dropping for certain encode formats, and warning-as-not-error semantics. It also clarifies that a new revision is issued. This goes well beyond what readOnlyHint, destructiveHint, and idempotentHint already communicate.

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 packed with essential information but remains well-structured and front-loaded with the core purpose. Each sentence contributes unique value: input constraints, sibling tool pointers, idempotence, and an edge-case warning. No filler is present.

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 transform tool, the description covers input selection, mutual exclusivity, batch behavior, idempotence, encoding caveats, and where to find operation catalog details. An output schema exists, so return-value details need not be duplicated. The description is complete enough for an agent to call the tool correctly in both single and batch scenarios.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Even though schema description coverage is 100%, the description adds critical parameter semantics not encoded in the schema: recipe structure with operations applied in order, at most one encode operation and it must be last, the exact one-of relationship, batch size limit of 64, and per-item failure isolation. The note about ICC profile behavior further clarifies the recipe parameter's practical effects.

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 begins with a specific verb and resource: 'Apply a transform recipe at full resolution and issue a new revision.' It clearly distinguishes this from siblings like render_preview and export_asset by emphasizing full-resolution processing and revision creation. The operation's core input alternatives are also stated, leaving no ambiguity about what the tool does.

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 explicit usage context: exactly one of recipe/preset and exactly one of revision_id/revision_ids, plus batch limits and failure semantics. It also points to sibling tools list_operations and explain_operation for prerequisite knowledge. However, it does not explicitly state when not to use this tool versus siblings like render_preview, so it stops short of a full 5.

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