Skip to main content
Glama
zhanglongxiao111

indesign-cli MCP Server

close_document

Close an InDesign document by specifying its name or forcing the active document. Optionally discard unsaved changes to avoid prompts.

Instructions

Close a document only when the target is unambiguous. Modified documents require allowDiscard.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allowDiscardNoExplicitly discard unsaved changes when closing the target document
forceActiveDocumentNoExplicitly close the active document even when multiple documents are open
expectedDocumentNameNoOptional document name to close when multiple documents are open
Behavior3/5

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

With no annotations provided, the description must fully disclose behavior. It mentions the need for allowDiscard when modified, implying a destructive action, but does not clarify whether the operation fails or prompts without it, nor does it describe any prerequisites or side effects.

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?

The description is extremely concise with two sentences that front-load the core action. Every word serves a purpose, and there is no redundant or extraneous information.

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?

Given the three parameters and no output schema, the description is brief. It covers the key condition for using allowDiscard but does not explain how to resolve target ambiguity or handle failure cases. The schema fills in parameter details, but the description could be more complete for a tool with no annotations.

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 100%, so the baseline is 3. The description adds value by tying allowDiscard to the condition of modified documents, but does not elaborate on forceActiveDocument or expectedDocumentName, leaving their semantics mostly to the schema.

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?

The description clearly states the action 'Close a document' and adds specificity with conditions about target unambiguity and modified documents. It directly identifies the tool's purpose and distinguishes it from sibling tools like open_document or save_document.

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 description provides usage guidance by noting that the target must be unambiguous and that modified documents require allowDiscard. However, it does not explicitly specify when to use this tool versus alternatives or when to avoid it, leaving some ambiguity for the agent.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhanglongxiao111/indesign-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server