Skip to main content
Glama

resize

Destructive

Scale the whole photo up or down. This is not a crop (use crop). Give width+height to stretch to an exact box, one alone to keep the aspect, or long_edge to scale by the longer side. IRREVERSIBLE in this session: there is no undo, so make a checkpoint first when in doubt. REFUSES when the photo has a masked filter, or any filter made outside Editmamei: resize before adding masked filters, not after. A large target can take tens of seconds; if the call times out the editing session restarts and unsaved work (filters, masks, any other open photo) is lost, so make a checkpoint before an aggressive resize. On this server the result must stay within the workspace's pixel limit.

Input Schema

NameRequiredDescriptionDefault
imageYesImage id, as returned by open_photo.
widthNoTarget width, px. With height, stretches to exactly that box. Alone, height is derived to keep aspect. Capped at 30000 px/side and 250 MP total (a hard limit).
heightNoTarget height, px. See width.
long_edgeNoScale so the longer side lands here, preserving aspect. Use this OR width/height.

Output Schema

NameRequiredDescriptionDefault
widthNo
heightNo
effect_update_failuresNoNames of effect filters (position/direction/size-dependent ones tracked through geometry changes — a center, an angle, an offset, or a size-dependent blur radius under resize) whose own params could not be updated for this transform (a live update failure) -- they were restored to their OLD values in manage_filters's own ledger (guaranteed), and the live render was also asked to restore those same OLD values (best effort — it can, rarely, also fail). Omitted when every filter updated cleanly.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint, non-idempotent) by disclosing that the operation is irreversible with no undo, that it refuses with masked/foreign filters, that large targets can take tens of seconds, and that a timeout restarts the session and loses unsaved work. It also notes the workspace pixel-limit constraint on the result.

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 purpose and sibling distinction, then layers refusal conditions and timeout risk in a logical order. Efficient per sentence, though the checkpoint advice appears twice ('when in doubt' and 'before an aggressive resize'), a minor redundancy.

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?

An output schema exists, so return values need not be explained. The description covers everything else an agent needs for a destructive, timeout-prone mutation: reversibility, refusal conditions, ordering constraints, and the workspace pixel limit.

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?

Schema coverage is 100%, so the width/height/long_edge descriptions already carry the semantics. The description restates the same rules (width+height stretches, one alone keeps aspect, long_edge targets the longer side) without adding new syntax or format detail, so the baseline 3 applies.

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?

States a specific verb and resource ('Scale the whole photo up or down') and immediately distinguishes itself from the sibling 'crop' by name. An agent can tell resize apart from crop, canvas_size, and transform_image without opening any 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?

Names the alternative to avoid ('not a crop, use crop'), spells out the exact parameter combinations for the three scaling modes, and states explicit preconditions and refusals (masked filters, filters made outside Editmamei). It even prescribes the ordering: resize before adding masked filters, not after.

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.

Resources