Skip to main content
Glama

paint_history

Undo or redo complete atomic scene operations in Agent Paint, treating each batch as a single step. Reverts or reapplies changes using bounded in-memory history for a target document.

Instructions

Undo/redo complete atomic scene operations. A batch is one step. Bounded in-memory history; .apaint stores current scene, not undo buffers.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "paint_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNo
actionNoundo
document_idNoTarget this document instead of the shared active one (recommended when several agents share the server)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real behavior: operations are atomic, batches collapse into a single step, history is bounded and in-memory, and undo buffers are not persisted to .apaint. What is missing is what happens at the history boundary (error vs no-op) and whether the caller can learn how many steps remain.

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 the operation and unit of work, followed by the persistence caveat. No filler; each clause adds a distinct fact an agent needs.

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 three-parameter mutation tool with no annotations and no output schema, the description covers the important persistence and granularity semantics but leaves parameter meaning and boundary/error behavior unexplained. Adequate, but an agent still has to guess what 'steps' does and what a call returns.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33% — only document_id is documented in the schema, and the description adds nothing about 'steps' (how many operations to rewind, and how that interacts with batch collapsing) or about 'action' beyond the enum values. The one sentence about batches partially informs 'steps', but the description does not compensate for the coverage gap.

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 pair (undo/redo) applied to a specific resource (atomic scene operations / history), and clarifies that a batch counts as one step, which distinguishes its unit of work from sibling paint_batch. It does not explicitly contrast itself with state-inspection siblings like paint_state or paint_snapshot, but the operation is unambiguous.

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?

The undo/redo framing implies when to use it, and 'A batch is one step' gives a useful mental model for choosing how far to rewind. However, there is no explicit when-to-use vs when-not guidance, no mention of what to do when history is exhausted, and no pointer to alternatives such as restoring via paint_snapshot.

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