Skip to main content
Glama
InDesign MCP

InDesign MCP

indesign_uxp_inspect_document

Read-onlyIdempotent

Inspects an InDesign document via the loaded UXP panel and returns metadata, page details, locked/overflow text-frame states, and DOM IDs. Omit document_id to inspect the active document.

Instructions

Reads document metadata, pages, and text-frame metadata (including locked and overflow states) through the loaded UXP panel. Omitting document_id inspects the active document. Returns DOM IDs for explicit later frame operations.

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": "indesign_uxp_inspect_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeout_msNoOptional wait in milliseconds; defaults to 30,000 and is limited to 1,000–120,000
document_idNoOptional positive numeric Document.id; omit to inspect the active document

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered and the bar is lower. The description does add useful context — it requires a loaded UXP panel and discloses that locked and overflow frame states are surfaced — but it says nothing about behavior when no document is open, when document_id points to a missing document, or how the timeout interacts with a large document.

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 compact sentences with the read scope front-loaded, followed by the default-target rule and the return-value note. Nothing is wasted and there is 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 read-only two-parameter tool with no output schema, the description adequately conveys what comes back (metadata, pages, frame metadata, DOM IDs) and the default target. Minor gaps remain around failure modes and the UXP panel prerequisite's consequences, but the core calling information is present.

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 100%, so both parameters are already documented in the schema and the description's restatement of the 'omit document_id = active document' rule is redundant. The timeout_ms parameter is not discussed in the description at all, so it adds no meaning beyond the schema. Baseline 3 is appropriate.

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 names a concrete verb and resource set: 'Reads document metadata, pages, and text-frame metadata (including locked and overflow states)' through the loaded UXP panel. It scopes itself against nearby read tools by emphasizing document-level inspection plus text-frame metadata and by noting that DOM IDs are returned for later frame operations, though it never names the sibling (e.g. indesign_uxp_read_text_frame) it should be preferred over.

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 only usage condition given is that omitting document_id inspects the active document, which is parameter guidance rather than task guidance. There is no explicit statement of when to choose this over indesign_uxp_read_text_frame or indesign_uxp_status, so the agent must infer usage from the tool's scope.

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