Skip to main content
Glama

Expand an image's canvas

expand_image

Outpaints an existing generation to a bigger canvas / new aspect ratio — the model extends the scene beyond the original edges. COSTS CREDITS (generate_* by output resolution). Creates a NEW generation in the source's own project. Optionally restrict directions with extend, or zoom out with zoom < 1.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
zoomNo0-1; below 1 zooms out (subject shrinks, more scene appears).
extendNoDirections to extend. Default: all four.
resolutionNoDefault: the source's.
generation_idYes
target_aspect_ratioYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Adds significant behavioral detail beyond sparse annotations: costing credits by output resolution, creating a NEW generation in the source's own project (side effect), and optional zoom/extend behavior. This is exactly the kind of context that helps an agent anticipate side effects and costs, and it does not contradict readOnlyHint=false or destructiveHint=false.

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?

Three sentences, each carrying distinct information: the core operation, the cost/side-effect warning, and optional parameter usage. No fluff, and the most critical behavioral notes are front-loaded. Slightly compact but appropriately structured.

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 mutation tool with a nested object, enums, no output schema, and sparse annotations, the description covers the key aspects: side effect (new generation), cost, and optional parameter behavior. It does not mention the return value or whether the operation is async, but enough is provided for correct invocation in most cases.

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 schema already describes zoom, extend, and resolution with decent detail (60% coverage). The description adds a little emphasis on 'zoom < 1' and 'restrict directions with extend' but does not clarify generation_id or target_aspect_ratio beyond the schema. With 60% coverage, the baseline 3 is appropriate.

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 clearly states a specific verb ('outpaints') and resource ('existing generation') with a defined outcome (bigger canvas / new aspect ratio). It distinguishes the tool from siblings like upscale_image (which increases resolution) and generate_image (which creates from scratch) by focusing on extending the scene beyond original edges.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied: use this when you need to expand an existing generation to a larger canvas or new aspect ratio. It mentions optional controls for restricting directions and zooming out, but does not explicitly name alternatives or state when not to use it, leaving some routing to inference.

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