Skip to main content
Glama
MyArchitectAI MCP server

MyArchitectAI MCP server

Official

Edit by Prompt

edit_by_prompt

Edit an image by applying a natural-language instruction, with an optional reference image for guided changes. Accepts HTTPS URLs or data URIs and charges the API account per use.

Instructions

Edit an image with a natural-language instruction, optionally using an attached reference image. Image inputs accept public HTTPS URLs or image data URIs. Charges the API account; cost and balance are in USD.

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": {
      "image": "<image>",
      "prompt": "<prompt>"
    },
    "name": "edit_by_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesURL of the source image — a sketch, line drawing, 3D/CAD model screenshot, or photo. Either a public HTTPS URL reachable by MyArchitectAI, or an inline data:image/<mime>;base64,<payload> URI for a local file.
promptYesNatural-language instruction describing the edit.
referenceImageNoOptional reference image URL or image data URI. Refer to it as "attached image" in the prompt.

Output Schema

NameRequiredDescriptionDefault
codeNo
costNo
errorNo
outputNoURLs of generated images, or a video URL for animate.
balanceNo
requestIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, open-world behavior, and the description adds genuinely new context: that the call bills the API account and that cost/balance are expressed in USD. That cost warning is material for a paid, non-idempotent call. It stops short of explaining failure/retry behavior or whether the result is synchronous.

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 short sentences that are front-loaded with the action, followed by input-format constraints and the billing note; nothing is padded. The final sentence packs two distinct facts (account charge and USD currency) but remains readable.

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?

With annotations, full schema coverage, and an output schema, the description covers purpose, accepted input forms, and billing adequately. The remaining gap is workflow-level: it does not say whether the edit returns immediately or must be retrieved via siblings like list_recent_generations or preview_image, which matters for a non-idempotent paid call.

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 description coverage is 100%, so each parameter is already documented in the schema, including the HTTPS/data-URI formats and the 'attached image' phrasing convention for the reference. The description largely restates those format constraints rather than adding new meaning, so the baseline of 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 an image') plus the mechanism ('natural-language instruction') and the optional reference image. It does not differentiate from close siblings such as style_transfer, change_textures, or auto_prompt, so an agent cannot tell from the text alone which of these edit paths to pick.

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 is only implied: the tool edits an existing image via prompt, which implicitly separates it from generation tools like text_to_image. There is no explicit when-to-use, when-not, or named alternative among the several overlapping edit-style siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.