Skip to main content
Glama
ACoci86

graphite-art-mcp

by ACoci86

Graphite: inspect the active document

graphite_get_document
Read-onlyIdempotent

Retrieve the active document's id, name, layers, and open documents to verify SVG insert success after a timeout or confirm content before export.

Instructions

Return the active document's id and name, all its layers (id, name, kind, visibility, parent) and the list of open documents. Read-only. Use it to verify that a graphite_insert_svg reported as BRIDGE_TIMEOUT did or did not land (look for the layer_id in layer_ids) before deciding to retry, and to confirm a document is not empty before exporting. Fails with NO_ACTIVE_DOCUMENT when nothing is open.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesTab name of the active document, when known.
layersYesPer-layer details: display name, node kind, visibility and parent (null = document root).
layer_idsYesEvery layer id in the active document (decimal strings), nested groups included.
document_idYesGraphite DocumentId of the active document, as a decimal string.
layer_countYes
open_documentsYesAll open documents; switch with graphite_select_document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description still adds real behavioral context beyond that: the NO_ACTIVE_DOCUMENT failure mode and the fact that the response carries only identity/layer metadata, not content. It stops short of noting any rate limits or latency expectations, but for a read-only query that is minor.

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?

Two sentences, both front-loaded: the return payload first, then the decision-relevant usage. No filler, and the error code is placed at the end where it belongs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Complete for a zero-parameter read tool. An output schema exists, yet the description still names the key fields an agent needs for its stated verification workflow (layer_id in layer_ids), and the documented NO_ACTIVE_DOCUMENT branch covers the main failure path.

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

Parameters4/5

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

Zero parameters, so the baseline is 4. There is nothing to mis-specify, and the description correctly implies no arguments are needed by framing the tool entirely around ambient state ('the active document').

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Return the active document's id and name, all its layers... and the list of open documents') and enumerates the shape of what comes back. Distinguishable from siblings like graphite_select_document or graphite_get_capabilities.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives two explicit when-to-use scenarios tied to sibling tools: verifying whether a graphite_insert_svg that returned BRIDGE_TIMEOUT actually landed (by checking layer_id in layer_ids), and confirming a document is not empty before exporting. The condition that selects this verification path is spelled out rather than inferred.

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