Skip to main content
Glama

Creatives: edit the picture

creative_image_edit

Change the PICTURE of a ready creative by an instruction — «заміни фон на море», «інше фото з кавою». A picture WITHOUT a real person: FLUX Kontext edits it, 10 AI credits per variant. A REAL person's photo (kit photo creatives, brand / uploaded photos with people) is never sent to an image model: the words become parameter edits (texts, frame / zoom, colours, layout, format — 0 credits) or a NEW background behind the cut-out person (kit creatives, 10 credits, the person keeps the original pixels); asking to change the person (younger, smile, other face, remove him) is refused with an explanation — relay it. The confirmation shows the route and the price; a failed edit is refunded and the previous picture stays. Plain texts / colours / brighter / darker: creative_edit (free). CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "order_id": "<order_id>",
      "variant": "<variant>",
      "instruction": "<instruction>"
    },
    "name": "creative_image_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoOnly this format of the variant (square, portrait, story, …). Default: every format of the variant.
variantYesVariant number (1-based) as in creative_get.
order_idYesorder_id from creative_order / creative_list.
instructionYesWhat to change in the picture, in the person's words.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and openWorldHint=false; they say nothing about cost, reversibility, or routing. The description adds pricing per route (10 credits for a FLUX Kontext edit, 10 for a new cut-out background, 0 for parameter edits), the refund policy on failure, the guarantee that the previous picture stays, the pixel-preservation rule for the person, and the exact confirmation contract (action_id, plan_token). That is substantial behavior beyond the structured fields.

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 the no-person/person split before the cost and confirmation details, which is the right order for a routing decision. It is dense — the middle section packs cost, routing, refusal, refund and pixel semantics into one long block with mixed-language examples and all-caps emphasis — so it reads as heavy but almost every clause carries decision-relevant 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?

This is a complex, costly, person-sensitive mutation with no output schema, and the description covers everything an agent needs before calling: route selection, credit cost, refusal handling, failure/refund semantics, and the mandatory confirmation handoff. Nothing required for a correct first invocation is left to inference.

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 100%, so the baseline is 3, but the description earns above baseline by defining what 'instruction' actually means in practice: free-form natural language with concrete examples, and — critically — that its content determines the route, the price, and whether the call is refused. The format parameter's scoping ('only this format of the variant') is reinforced in prose rather than left to the schema alone.

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?

Names a specific verb and resource ('Change the PICTURE of a ready creative by an instruction') and immediately splits the resource into two cases with different behavior: pictures without a real person vs. photos of real people. It also names the sibling it is not ('Plain texts / colours / brighter / darker: creative_edit (free)'), so an agent can route without opening another 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?

Gives an explicit alternative for the overlapping case (text/colour/brightness tweaks go to creative_edit, which is free) and an explicit escalation path (the call only proposes; the write happens via confirm_action after status='confirmation_required'). It also states the refusal case — requests to change the person are declined with an explanation that must be relayed — which is guidance about when not to act.

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