Skip to main content
Glama
runapi-ai
by runapi-ai

edit_image

Edits an image by submitting source image URLs and a prompt to GPT Image API, returning task ID, status, and output URLs.

Instructions

Create a GPT Image task on RunAPI (edit image). Returns a task id, status, and output URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waitNoPoll until the task reaches a terminal status.
modelNoRunAPI model slug for this model line.
promptYes
qualityYes
timeout_msNo
aspect_ratioYes
callback_urlNo
poll_interval_msNo
source_image_urlsYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions returning a task id and status, hinting at asynchronous behavior, but does not explain polling, wait semantics, callback_url, or how output URLs become available. It omits authentication requirements, rate limits, and whether the operation is blocking. The description provides minimal insight into the task lifecycle.

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?

The description is a single concise sentence that front-loads the action ('Create a GPT Image task') and includes essential context (edit image, return values). There is no redundancy or wasted words, exemplifying efficient structure.

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

Completeness2/5

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

Given 9 parameters, no output schema, and no annotations, the description is too sparse to be complete. It does not explain the overall workflow (e.g., pairing with get_task to retrieve results), the async behavior controlled by wait, or how callback_url and poll_interval_ms function. The description leaves significant gaps for a complex task-based tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 22% (2 of 9 parameters have descriptions). The tool description adds no parameter details beyond the name 'edit image,' failing to clarify required parameters like prompt, source_image_urls, aspect_ratio, or quality. It does not compensate for the low schema coverage, leaving the agent without meaningful guidance on how to construct valid requests.

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?

The description clearly states the tool's function: 'Create a GPT Image task on RunAPI (edit image).' This distinguishes it from sibling tools like text_to_image by explicitly indicating it handles image editing. It also states return values (task id, status, output URLs), making the purpose unambiguous.

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 implies usage for image editing but provides no explicit guidance on when to use this tool versus alternatives like text_to_image. It does not mention prerequisites (e.g., needing a source image URL) or complementary tools like get_task for retrieval. Guidance is only implicit through the tool's name and the phrase 'edit image.'

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/runapi-ai/gpt-image-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server