Skip to main content
Glama

get_diagram_image

Fetch PNG images of Cacoo diagrams for review, documentation, or sharing. Specify a sheet ID to get one sheet; omit it to retrieve all sheets.

Instructions

Fetch PNG image(s) of a Cacoo diagram. If sheetId is omitted, fetches ALL sheets. When the diagram has many sheets (sheetCount > 3), use get_diagram_sheets first to identify the target sheet.

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": {
      "diagramId": "<diagramId>"
    },
    "name": "get_diagram_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthNoPNG width in pixels
heightNoPNG height in pixels
sheetIdNoSpecific sheet ID
diagramIdYesCacoo diagram ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the highest-risk behavior: omitting sheetId fetches ALL sheets, which can mean a large multi-image response. It also flags the threshold (sheetCount > 3) that should trigger a different call. It stops short of describing the response encoding (base64 vs URL) or size/rate constraints.

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?

Three short sentences, zero filler, and the core action plus the default-scope caveat are front-loaded before the escalation advice.

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?

For a four-parameter read-only fetch tool with no annotations and no output schema, the definition covers the key decision points. The remaining gap is the shape of the return value (single vs multiple PNGs, how they are delivered), which an agent might reasonably want before calling with no sheetId.

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 the baseline would be 3, but the description adds real semantics the schema lacks: the conditional default for sheetId and the sheetCount-based decision rule. Width/height remain purely schema-documented, which is acceptable.

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 ('Fetch PNG image(s) of a Cacoo diagram') and immediately distinguishes itself from the sibling get_diagram_sheets by naming it as the prerequisite step. An agent can tell what this tool produces (rendered PNGs) versus metadata.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit rule: omit sheetId to get all sheets, and when sheetCount > 3 call get_diagram_sheets first to pick a target. This is a concrete when-to-use and when-to-delegate condition naming the exact alternative.

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