Skip to main content
Glama

paint_document

Create, open, save, inspect, and close .apaint documents, or export full-resolution PNG, JPEG, WebP, TIFF, ORA, and PSD files while controlling active document state and overwrite protection.

Instructions

Create/open/save .apaint; export full-resolution PNG/JPEG/WebP/TIFF or raster-layer ORA/PSD (scale 2..16 = nearest-neighbour enlargement for flat formats). Export never saves the project: project_saved tells whether the .apaint on disk is current. inspect verifies a saved .apaint read-only. Opening an already open project selects it (force=true reloads). document_id selects/closes, or targets info/save/export without changing the active document. Existing paths protected unless overwrite. Close dirty document requires force.

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_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
dpiNo
nameNoUntitled
pathNo
forceNo
scaleNo
widthNo
actionNoinfo
heightNo
overwriteNo
backgroundNo#FFFFFF
document_idNo
transparentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does disclose meaningful side effects: export is non-persisting, project_saved reports on-disk currency, existing paths are protected unless overwrite, and closing a dirty document requires force. Remaining gaps are that import_image/import_ora/list behavior and any permission or size constraints are unstated.

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

Conciseness4/5

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

Every clause carries information and the core purpose is front-loaded; there is essentially no filler. The telegraphic semicolon-chained fragments, especially 'document_id selects/closes, or targets info/save/export without changing the active document', cost some readability.

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 12-parameter, 11-action tool with no annotations and no output schema, the description covers the most consequential semantics but leaves three actions and six parameters undocumented. It also references a return field (project_saved) with no output schema to confirm the response shape. Minimum viable, but with clear gaps.

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 coverage is 0%, so the description must compensate. It adds genuine meaning for path (protected unless overwrite), overwrite, force (reload dirty/close dirty), document_id (select/close or target info/save/export without switching), and scale (2..16 nearest-neighbour, flat formats only). But dpi, name, width, height, background, and transparent — half the parameters — receive no explanation at all.

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 specific verb+resource set ('Create/open/save .apaint', export to PNG/JPEG/WebP/TIFF), then names further actions (inspect, select, close) and the document_id targeting role. An agent can tell this is the document-lifecycle tool as opposed to layer/brush/selection siblings, without opening the schema. It falls short of 5 because the enumerated action set is incomplete (list, import_image, import_ora never appear).

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 draws real usage distinctions: export vs save ('Export never saves the project'), inspect vs open ('inspect verifies a saved .apaint read-only'), and re-open semantics ('Opening an already open project selects it (force=true reloads)'). What is missing is any guidance on when-not-to-use this tool (e.g., versus paint_batch or paint_snapshot) and no guidance for the unlisted actions.

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