Skip to main content
Glama

Edit Image

beatra.images.edit
Idempotent

Edit images[0] as the base image; later images are ordered references and optional regions use normalized coordinates. Omit model unless the user explicitly requests one; call beatra.models.list before model or cost comparisons. This billable call consumes Beatra credits and creates an asynchronous task. Submit exactly once, then poll with beatra.tasks.get. Reuse the same client_request_id only for an identical retry.

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": {
      "prompt": "<prompt>",
      "images": "<images>",
      "client_request_id": "<client_request_id>"
    },
    "name": "beatra.images.edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoOptional random seed. Supplying it constrains model eligibility; omit it for model-managed randomness.
countNoRequested output image count. The public range is one through four, and the selected model must support the exact count; Beatra does not split the request.
modelNoOmit or use 'auto' unless the user explicitly requests a concrete model. An explicit model is evaluated exactly as requested and is never substituted.auto
canvasNoDesired output canvas. The default is a 2K tier derived from the first base image's ratio; actual output dimensions remain authoritative.
imagesYesOrdered inputs; images[0] is the base and later entries are references.
promptYesRequired prompt containing at least one non-whitespace character.
paletteNoThree to ten weighted RGB colors. Runtime validation requires the weights to sum exactly to 1.0000.
edit_regionsNoFlat normalized rectangles keyed by an input image_index. Runtime validation enforces cross-coordinate and collection relations.
enhance_promptNoAsk the model to rewrite the prompt before generation. Omit or use null to keep the prompt exactly as written; an explicit boolean constrains model eligibility.
negative_promptNoOptional content or qualities to avoid. Supplying it constrains model eligibility and is rejected when no compatible model is available.
client_request_idYesStable retry identity for this billable operation. Reuse only for the exact same generation arguments.

Output Schema

NameRequiredDescriptionDefault
taskNo
errorNo
usageNo
statusNo
billingNo
task_idNo
terminalNo
artifactsNo
resolved_modelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantial behavior beyond annotations: it is billable and consumes credits, creates an asynchronous task, must be submitted exactly once, is polled with beatra.tasks.get, and client_request_id should be reused only for an identical retry. This is consistent with the idempotent and open-world annotations.

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?

Four dense sentences front-load the purpose and then add only operationally important constraints: model omission, billing/async behavior, polling, and retry identity. There is no filler.

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 an 11-parameter, billable, asynchronous image-edit tool with rich schema coverage, annotations, and an output schema, the description covers the key agent decisions: image roles, model selection, billing, polling, and retry semantics. Remaining validation details are appropriately delegated to the schema.

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%, and the schema already documents the ordered images, normalized regions, model behavior, and client_request_id semantics. The description reinforces base-image ordering and retry identity, but adds little parameter meaning beyond what the schema already provides, 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?

States a specific verb and resource: 'Edit images', with images[0] as the base image and later entries as ordered references. It is clear what the tool does, but it does not explicitly route among close siblings such as beatra.images.transform or beatra.images.generate.

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?

Gives concrete workflow guidance: omit model unless explicitly requested, call beatra.models.list before model or cost comparisons, submit exactly once, and poll with beatra.tasks.get. It lacks an explicit when-not-to-use-this versus alternative edit/generation tools, which keeps it from a 5.

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