Skip to main content
Glama
InDesign MCP Server

InDesign MCP Server

by vinitdeep

create_parent_page

Builds or rebuilds a document parent page spread with running heads, folios, and optional primary text frames so pages inherit consistent headers, footers, and flow.

Instructions

Create (or rebuild with replace:true) a parent page spread — the template every document page inherits from. Can add an automatic page number (folio) and running heads. Running-head text may contain {{style:Chapter Title}} which inserts a live text variable showing the current chapter title (first paragraph in that style on the page, or the latest before it). Typical book set: A "Body" (running heads + folio), B "Chapter Opener" (folio only, no heads), C "Front Matter" (empty). Header/footer text is styled with paragraph styles "Running Head" and "Folio" (created if missing).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prefix": "<prefix>",
      "name": "<name>"
    },
    "name": "create_parent_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesBase name, e.g. "Body". Full name becomes "A-Body"
folioNoPage number positionbottom-center
prefixYesOne letter/short prefix, e.g. "A"
basedOnNoOptional parent this parent inherits from, e.g. "A-Body"
headGapNoPoints between running head frame bottom and the top margin
replaceNoIf the parent exists, clear and rebuild it
folioGapNoPoints between bottom margin and the page-number frame
folioStyleNoParagraph style for the page numberFolio
runningHeadLeftNoLeft (verso) page header text, e.g. author name. Supports {{style:...}}
primaryTextFrameNoAdd margin-sized text frames threaded left→right and make them the Primary Text Frame, so placed/typed body text flows through pages and new pages are added automatically (use for Body and Chapter Opener parents)
runningHeadRightNoRight (recto) page header text, e.g. book title or {{style:Chapter Title}}
runningHeadStyleNoParagraph style for running headsRunning Head

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does disclose meaningful side effects: missing "Running Head" and "Folio" paragraph styles are created, replace:true clears and rebuilds an existing parent, and primaryTextFrame causes text to flow across pages and new pages to be added automatically. It omits failure behavior when the parent already exists without replace, and says nothing about permissions or what is returned, leaving real gaps for a 12-parameter mutation.

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?

Front-loaded with the core purpose and rebuild variant, then layered detail on folio/running heads and the {{style}} variable, with no filler sentences. It is dense and long for a single paragraph, but each sentence adds actionable 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?

For a 12-parameter mutation with no annotations and no output schema, the description covers side effects, style creation, and text-flow behavior well. It still leaves out error handling when the parent name already exists without replace, and gives no hint of the return value or post-conditions an agent would need to verify success.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine semantics beyond the schema: running-head text supports {{style:Chapter Title}} live text variables with a precise resolution rule (first paragraph in that style on the page, or the latest before it). The typical A/B/C set also illustrates how folio and running-head options combine, which the field descriptions alone do not convey.

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 and resource ("Create ... a parent page spread") and immediately defines the domain concept ("the template every document page inherits from"), plus the rebuild variant via replace:true. It never explicitly contrasts itself with the sibling apply_parent_page, so differentiation rests on the verbs alone, which keeps it just short of a 5.

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?

Gives concrete usage context through the "Typical book set" of A/B/C parents and the parenthetical "use for Body and Chapter Opener parents" on primaryTextFrame. It stops short of explicit when-to-use versus alternatives and states no prerequisites such as an open document or existing styles, so it is clear context rather than full routing guidance.

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