Skip to main content
Glama

edit_diagram

Edit existing diagrams using natural language instructions, with configurable AI provider, resolution, and optional reference images.

Instructions

Edit an existing diagram based on instructions.

Args: image_path: Path to the existing diagram image prompt: Edit instructions provider: Image generation provider (gemini|openai) resolution: Output resolution (auto-detect if not specified) reference_images: Additional reference image paths output_path: Where to save the result

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes
providerNogemini
image_pathYes
resolutionNo
output_pathNo
reference_imagesNo
Behavior2/5

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

No annotations are provided, so the description must disclose behavior itself. It only states that the tool edits an image and saves a result, but does not mention side effects, overwrite behavior, provider requirements, or return values. This is insufficient for a tool with no annotation coverage.

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?

The description is short and front-loaded with the purpose, followed by a compact argument list. It avoids excessive verbosity, though the argument list is not structurally formatted beyond plain text.

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

Completeness3/5

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

With 6 parameters and no annotations or output schema, the description provides parameter explanations but lacks behavioral context such as what happens to the original file, how providers affect output, and what the function returns. It is adequate but not fully complete.

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?

The schema has zero descriptions, so the description compensates by explaining each parameter with meaningful detail, such as provider options (gemini|openai), resolution auto-detection, and the purpose of reference_images. This adds value beyond the schema's bare titles.

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 uses a specific verb ('Edit') and resource ('existing diagram') and distinguishes itself from sibling generate_diagram by emphasizing 'existing'. This clearly states what the tool does.

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 the tool is for editing existing diagrams, but it does not explicitly state when to use it over generate_diagram or other alternatives. No exclusions or prerequisites are mentioned.

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/jessepike/diagram-forge'

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