Skip to main content
Glama

Expand a photo

expand_image

Extend a photo beyond its edges to a wider or taller shape, filling in matching scenery. OAuth uses site credits (from 24 credits per image with the default model). API keys use a separate USD wallet. Omit approval to get a quote, then confirm max_credits for OAuth or currency USD and decimal max_usd for API keys.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "expand_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageNoChatGPT only: the photo the user attached. Use image_url everywhere else.
max_usdNoAPI key only: maximum approved USD as a decimal string with up to 9 fractional digits. Set currency to USD. Only set after the user confirms the quoted cost_usd. Never convert max_credits.
currencyNoBilling unit: USD for API keys; credits for OAuth (optional for existing OAuth clients).
image_urlNoThe photo to extend beyond its edges (https or popnow:// link).
max_creditsNoOAuth only: the most site credits the user agreed to spend on this. Only set it after the user confirmed a quoted price.
aspect_ratioNoThe new, larger shape: 16:9, 9:16, 1:1, 4:3, 3:4 or 3:2. Default 16:9.
production_idNoOptional. Run this inside a production opened with open_production: it is paid from that production's budget and needs no separate approval while the budget lasts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / production_id
      Added value: +{
      +  "description": "Optional. Run this inside a production opened with open_production: it is paid from that production's budget and needs no separate approval while the budget lasts.",
      +  "type": "string"
      +}
  2. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnly=false, idempotent=false, openWorld=true; the description adds genuinely new behavioral context — that the call spends site credits for OAuth clients versus a USD wallet for API keys, and that omitting approval yields a quote rather than a generation. It still does not disclose what the call returns or whether partial failures are billed.

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, front-loaded with the capability before the billing mechanics. The pricing sentence is dense but relevant; a little of the approval detail duplicates the schema descriptions, which keeps it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description never describes what comes back — an image URL, a quote object, a production artifact — even though the quote-versus-generate branching makes the return shape genuinely ambiguous. Otherwise it covers the 7-parameter surface adequately.

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 every parameter already carries its own explanation, including the two-step quote/confirm coupling and the production_id budget note. The description largely restates this billing logic rather than adding new meaning, so the baseline 3 applies.

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?

Opens with a specific verb and resource: 'Extend a photo beyond its edges to a wider or taller shape, filling in matching scenery.' An agent immediately knows this is outpainting rather than editing inside the frame. It does not name a sibling alternative (e.g. edit_image, create_image), so it stops short of full differentiation.

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?

The description gives clear process guidance for the approval flow ('Omit approval to get a quote, then confirm max_credits ... or currency USD and decimal max_usd'). However it never says when to choose this tool over edit_image or create_image, nor any prerequisites about input image formats beyond what the schema states.

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.