Skip to main content
Glama

Read a diagram

get_diagram
Read-only

Read the full structure of a diagram: every node with its type and columns, every connection, and the groups. Use this before editing so you know what is actually there.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
diagram_idYesCanvas id, from list_diagrams, create_diagram, or create_blank_diagram.
include_imageNoAttach a PNG preview and a markdown image link to show the user. Default true; pass false for structure-only reads.
include_columnsNoInclude table column lists. Default true.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already indicate read-only and closed-world. The description adds useful context by specifying exactly what will be read (nodes, connections, groups) and the purpose (pre-edit check), which goes beyond the schema's parameter descriptions.

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 two sentences, front-loaded with the action and scope, with no redundant or filler content. Every clause adds information about what the tool does or when to use it.

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?

Given the tool's simplicity, full schema coverage, and annotations, the description provides sufficient context for an agent to select and invoke it. It could have mentioned alternative read-only tools, but the purpose and usage are clear.

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 coverage is 100%, with each parameter already described ('Canvas id', 'Attach a PNG preview', 'Include table column lists'). The description does not add further parameter-level semantics, so the baseline of 3 is appropriate.

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 reads the full structure of a diagram, enumerating nodes, types, columns, connections, and groups. This is a specific verb+resource+scope that distinguishes it from editing or diagram-creation tools.

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?

The description explicitly advises using this tool before editing to understand the current state. It implies the appropriate context but does not explicitly name alternatives or state when not to use it.

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.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool has a clear, distinct purpose: canvas_add_nodes vs canvas_add_standalone_node, canvas_add_region vs canvas_group_nodes, and canvas_describe_canvas vs canvas_inspect_nodes are all well-differentiated in their descriptions. The only slight overlap is between get_diagram and canvas_describe_canvas, but they operate at different levels (full diagram vs current canvas state).

Naming Consistency5/5

All canvas tools follow the consistent canvas_verb_noun pattern (e.g., canvas_connect_nodes, canvas_remove_nodes, canvas_layout_canvas), while high-level tools follow verb_noun (create_diagram, export_diagram). The two groups are internally consistent and the prefix clearly separates them.

Tool Count2/5

With 34 tools, the server exceeds the recommended range for a typical MCP server. While every tool has a distinct role, the sheer number of canvas manipulation tools (27) feels heavy for most diagram-editing tasks and could be consolidated without losing functionality.

Completeness3/5

The tool set covers diagram creation, reading, updating, and export, but there is no delete_diagram tool, breaking the full CRUD lifecycle. Canvas editing is comprehensive, but the missing deletion at the diagram level is a notable gap that agents cannot work around.

Resources