Skip to main content
Glama

read_canvas

Parse a .canvas.md file to return all elements with their types, positions, sizes, and properties as structured data, so you can inspect a drawing's contents programmatically.

Instructions

Read and parse a canvas file (.canvas.md), returning a structured description of all elements with their types, positions, sizes, and properties.

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": {
      "workspace": "<workspace>",
      "canvasPath": "<canvasPath>"
    },
    "name": "read_canvas"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceYesWorkspace path or name
canvasPathYesCanvas file path relative to workspace (e.g., "documents/my-drawing.canvas.md")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It signals a non-destructive read by using "read and parse" and discloses the shape of the response (elements with types, positions, sizes, properties), but says nothing about failure modes, permission requirements, or size limits for large canvases.

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?

A single front-loaded sentence that states the action, the file type, and the return content with no filler. Nothing could be removed without losing information.

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 simple two-parameter read tool with fully documented parameters and no output schema, the description supplies the needed context, including a summary of the returned structure. Only edge-case behavior (missing file, malformed canvas) is absent, which is a minor gap at this complexity level.

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 description coverage is 100% — both workspace and canvasPath are documented in the schema, including an example relative path. The description adds no further parameter semantics, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb pair ("read and parse") plus the resource (a canvas file, with the exact extension .canvas.md) and even summarizes the return content. That makes it distinguishable from generic readers like read_document or read_database, though it never names an alternative explicitly.

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?

Usage is implied by the file-type restriction: an agent can infer this is the tool for canvas files rather than documents or databases. There is no explicit when-to-use/when-not-to-use statement, no mention of what to do if the path does not exist, and no pointer to add_canvas_elements for the write side.

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