Skip to main content
Glama

open_image_editor

Read-onlyIdempotent

Open the existing Edit AI Image modal for an owned post or a specific carousel image. Prefill only the requested instruction. The user can mark an area, describe changes, add a reference photo, and pick products or @mention them, then press Generate edit. This only opens the editor; it does NOT generate, save or publish an edit. Offer this when precise visual corrections or product references would help; use it when the user accepts or asks to open the editor. Return the editorUrl on channels outside the app. Never claim the edit is done.

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": {
      "postId": "<postId>"
    },
    "name": "open_image_editor"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYesExact post ID from get_post/list_posts.
instructionNoThe requested changes, prefilled for the user to review; never invent products or edits.
mediaItemIdNoOptional carousel slide ID from get_post. Omit for the main image.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / instruction / description
      Added value: +"The requested changes, prefilled for the user to review; never invent products or edits."
    • addedInput schema / properties / mediaItemId / description
      Added value: +"Optional carousel slide ID from get_post. Omit for the main image."
    • addedInput schema / properties / postId / description
      Added value: +"Exact post ID from get_post/list_posts."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent/non-destructive; the description goes much further by describing the prefill-only contract, the user-side flow (mark area, reference photo, product mentions, press Generate edit), the editorUrl return on out-of-app channels, and the explicit no-generate/no-save/no-publish boundary. This is exactly the behavioral context annotations cannot carry, and it does not contradict readOnlyHint (opening a UI is not a data mutation).

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 action and scope, then constraints, then the return value — a sensible order. Minor redundancy between "does NOT generate, save or publish an edit" and the closing "Never claim the edit is done," but that repetition is defensible as a guardrail against a common agent failure.

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 a 3-parameter tool with no output schema, the description covers everything an agent needs: when to open it, what it does and does not do, that it returns editorUrl outside the app, and how the instruction is handled. Nothing material about correct invocation is missing.

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 baseline is 3, but the description adds real meaning: instruction is prefill-only and must not be embellished ("Prefill only the requested instruction"), and the carousel case ties mediaItemId to a specific slide. It reinforces intent constraints rather than restating field types.

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?

States a specific verb and resource ("Open the existing Edit AI Image modal") and narrows scope to an owned post or a specific carousel image. It explicitly disclaims generation/saving/publishing, which separates it from generate-style siblings like edit_image or change_image without needing to open their schemas.

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 offer conditions ("when precise visual corrections or product references would help") and an activation condition ("when the user accepts or asks to open the editor"), plus a clear don't-claim-completion rule. It stops short of naming a specific alternative tool to use when the user actually wants a generated edit, so the routing is implied rather than fully enumerated.

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