Skip to main content
Glama

tabularia_set_chapter_opening

Destructive

Set the default way a Book's Chapters open — where each starts, the label, number and title lines, whether the header and footer show on its first page, the drop cap its first paragraph takes, and the Book's color. Only the fields you give change. target "kinds" sets the design its Prologue, Introduction and Epilogue share instead. resetOwnOpenings makes Chapters with a design of their own follow the Book's again. Read tabularia_read_book_settings first. A Snapshot is kept before the change. Send a requestId you make up for this one change, and send the same requestId if you retry it after an error or a lost answer: a retry with it answers with the first result and does not write again. A new change needs a new requestId, even when its wording is the same.

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

Input Schema

NameRequiredDescriptionDefault
bookIdNoWhich Book, by its id from tabularia_project_metadata. Leave it out when the Manuscript has one Book.
targetNoWhich design: the Chapters’ (the default) or their kinds’.
dropCapNoThe drop cap opening paragraphs take: {"heightPx": at least 48, "treatmentId": a drop cap from tabularia_list_decorations}. Left out, the treatment is the plain initial.
projectNoWhich open Project to use, by title, id, or the Studio address the Writer sees (a tabularia.app/studio/ URL or its six-character code — the Writer’s tab URL is enough; there is no need to look at the page). Omit it when only one Project is open in Studio.
elementsNoThe lines an opening sets, top to bottom: {"id","kind":"label","text":"Chapter"}, {"id","kind":"number","format":"arabic|roman-upper|roman-lower|words-title|words-upper"}, {"id","kind":"title"}. Give the whole list.
requestIdNoOptional. Your own name for this one change, 1–80 letters, digits, underscores, or hyphens. Reuse it only to retry the same change with the same input.
pagePolicyNoWhere a Chapter starts: a new page, a right-hand page, a page of its own, or in the flow.
accentColorNoThe Book’s color, as #rrggbb, which every decoration inked in Book color takes.
removeDropCapNoOpening paragraphs take no drop cap.
resetOwnOpeningsNoChapters with a design of their own follow the Book’s again.
suppressRunningFooterNoLeave the footer off a Chapter’s first page.
suppressRunningHeaderNoLeave the header off a Chapter’s first page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false; the description adds substantial context beyond that: only supplied fields change (partial update semantics), a Snapshot is kept before the change, and the requestId idempotency contract is spelled out in detail. It does not describe what the Snapshot supports (restore path) or any permission/rate constraints, keeping it below 5.

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 action, then the target and reset behaviors, then prerequisites and idempotency. Dense but every sentence carries information; the requestId paragraph is long though necessary for correct invocation.

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?

A 12-parameter, zero-required, destructive mutation with no output schema — the description covers partial-update semantics, scoping via target, prerequisite read, snapshot creation, and retry/idempotency behavior. Nothing essential for correct invocation is missing.

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 baseline is 3, but the description adds real meaning: partial-update semantics for omitted fields, the target enum's effect on which design is edited, and the requestId rules (new id per change, same id on retry). Drop cap defaults and decoration sourcing are covered by the schema itself.

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 (set the default way a Book's Chapters open) and enumerates exactly which settings are covered — start position, label/number/title lines, header/footer on first page, drop cap, book color. Distinguishes the 'chapters' target from the 'kinds' target (Prologue/Introduction/Epilogue) so an agent can tell what scope it is changing.

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 clear context: read tabularia_read_book_settings first, use target "kinds" for the shared Prologue/Introduction/Epilogue design, and resetOwnOpenings to make Chapters with their own design follow the Book's again. Prerequisite and alternative-target guidance is explicit, though it does not name which sibling tool to use for per-chapter designs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources