Skip to main content
Glama
HarryHeYu

papercanvas-mcp

by HarryHeYu

papercanvas_patch

Apply a batch of semantic operations atomically: add, remove, or update nodes, edges, styles, and groups. Supports optimistic concurrency via expected revision, with revision increment on success only.

Instructions

Apply a batch of semantic operations in ONE all-or-nothing transaction: add_node, remove_node (+remove_edges:true), update_node, set_style, add_edge, remove_edge, add_group, update_label, move_node. On success the revision increments by 1; on failure nothing changes. Pass expected_revision for optimistic concurrency.

Input Schema

NameRequiredDescriptionDefault
pathYes
operationsYes
expected_revisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does substantial work: atomicity, revision increment on success, no-op on failure, and the remove_edges:true side effect of remove_node. Missing are error shapes, permission requirements, and rate/size limits on the batch.

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 dense sentences, front-loaded with the atomic-batch guarantee, then operation types, then transactional semantics. No filler, and the most decision-relevant facts come first.

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?

For a mutation tool with no annotations, no output schema, and a free-form operations array, the description is strong on transactional semantics but leaves the agent unable to construct an operation payload or understand what 'path' refers to. It is not sufficient on its own to invoke 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% for all three parameters. The description rescues expected_revision with a clear concurrency rationale, but 'path' is never explained and the operations array is documented only by operation names — the shape of each operation object (fields for add_node, add_edge, etc.) remains undefined anywhere.

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?

States a specific verb ('Apply a batch of semantic operations') and an explicit scope: a single all-or-nothing transaction. The enumeration of nine operation types makes the tool's capability concrete. It never names or contrasts with siblings such as papercanvas_create or papercanvas_layout, so an agent must infer why it would patch instead of create.

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?

'Pass expected_revision for optimistic concurrency' is a real usage hint for one parameter, and 'on failure nothing changes' implies retry safety. However, there is no guidance on when to choose this over papercanvas_create or papercanvas_layout, nor any stated prerequisites. Usage is implied rather than prescribed.

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