Skip to main content
Glama
Xournal++ MCP

Xournal++ MCP

by Eugeniouo

prepare_drawing

Idempotent

Draw line, arrow, shape, or text annotations over the last shared page and preview them as a PNG before applying in Xournal++. Pass the read_shared_page capture ID and page-point coordinates.

Instructions

Prepare a drawing over the last shared page and show a PNG preview. Pass the capture ID from read_shared_page. Coordinates are page points from the top left. The user applies the drawing in the Xournal++ plugin.

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": {
      "captureId": "<captureId>",
      "description": "<description>",
      "items": "<items>"
    },
    "name": "prepare_drawing"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
captureIdYes
descriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, but the description adds the key non-obvious fact that this does not commit anything itself — 'The user applies the drawing in the Xournal++ plugin' — plus the PNG preview return. It leaves out limits such as the 80-item cap for large captures.

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, front-loaded with purpose then the prerequisite then the human-in-the-loop caveat. No restated schema detail and no filler.

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 mutation-shaped staging tool with a large nested payload union and no output schema, the description covers the essentials an agent needs: where the capture ID comes from, the coordinate frame, and that a human applies the result. Remaining gaps (item limits, units) are secondary.

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?

With 0% schema description coverage the description must carry the load, and it only partially does: it clarifies that captureId comes from read_shared_page and that coordinates are page points measured from the top left. The 'description' and 'items' parameters, shape semantics, and units for width/size go unexplained.

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 and resource ('Prepare a drawing over the last shared page') plus the observable outcome ('show a PNG preview'). It is distinguishable from read_shared_page because it consumes that tool's capture ID rather than producing one, though it never explicitly says what separates it from get_drawing_status.

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?

Gives one concrete precondition: 'Pass the capture ID from read_shared_page', which tells the agent the ordering with a sibling. It does not say when to use this versus checking drawing status or whether a drawing can be revised after preparation, so guidance is implied rather than explicit.

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