Skip to main content
Glama

read_drawing

Reads a vector drawing's strokes as points, color, width, and bounds so you can see what's on an ink or vector level before adding to it. Use only_new to get just the strokes drawn since your last read.

Instructions

Look at a vector drawing as strokes, the user's included: what is on the level file right now. Works on ink and vector layers. Each stroke: index (drawing order, later = on top), by ('mcp' = drawn with stroke, 'other' = the user in OpenToonz or shapes), color, width px, closed, bbox [x0, y0, x1, y1] and points [[x, y, pressure], ...] along the line (canvas px, thinned to max_points). Use it before adding to someone's drawing, then preview_frame to see the result. only_new=true returns just the strokes that appeared since your last read_drawing or stroke on this drawing ('gone' counts the ones that disappeared): the quick way to see what the user just did.

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": {
      "scene": "<scene>",
      "layer": "<layer>",
      "frame": "<frame>"
    },
    "name": "read_drawing"
  }
}

Input Schema

NameRequiredDescriptionDefault
frameYes
layerYes
sceneYes
only_newNo
max_pointsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does substantial work: it discloses the returned stroke fields, ordering semantics ('later = on top' as index), coordinate space and units (canvas px), point thinning via max_points, and the provenance marker ('mcp' vs 'other'). It also discloses stateful behavior — that only_new is scoped to the last read_drawing or stroke on that drawing and that 'gone' reports disappeared strokes — which an agent could not infer from the schema. It does not state read-only/permission or error behavior, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The return-shape enumeration is front-loaded and earns its space, but the opening sentence is malformed ('the user's included:') and the parenthetical and quoted-field style makes it read as a run-on. Information density is high, yet a sentence of cleanup would improve readability without losing content.

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?

There is no output schema and no annotations, so the description must supply the return contract — and it does, enumerating every stroke field, its type/units, and the incremental/removal semantics. The remaining gap is on the input side, where the scene/layer/frame addressing model is left implicit, but overall it is sufficient for an agent to call the tool correctly.

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 0%, so the description must compensate: it explains only_new thoroughly and defines max_points ('thinned to max_points'), but scene, layer, and frame — including the required frame — get no explanation of what they select or how they interact with the returned snapshot. Two of five parameters are well served; the core three rely on self-evident names.

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 opens with a concrete verb+resource ('Look at a vector drawing as strokes') and names the sibling it complements ('preview_frame') and the sibling it precedes ('stroke'), so an agent can place it in the workflow. The clause 'the user's included: what is on the level file right now' is garbled and slightly muddies the scope, keeping it short of a 5.

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?

It gives an explicit workflow rule — 'Use it before adding to someone's drawing, then preview_frame to see the result' — and a clear condition for the incremental mode ('only_new=true ... the quick way to see what the user just did'). There are no stated exclusions or failure cases, but the positive guidance is strong and actionable.

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