Skip to main content
Glama

tabularia_set_headers_and_margins

Destructive

Set what a Book's running headers and footers print, its margin numbers, and the Project's header typeface, the way the Headers & Margins settings in Tabularia do. Only what you give changes. A place set here is the Book's own; a Chapter or page the Writer gave its own words keeps them. Read tabularia_read_book_settings first, and change only what the Writer asked for. The answer's previous holds what each changed field was, in this tool's own shape: send it back as the request to put them back. From the cloud a Snapshot is kept before the change; with Tabularia open on this computer, take one with tabularia_take_snapshot first. 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_headers_and_margins"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookIdNoWhich Book, by its id from tabularia_project_metadata. Leave it out when the Manuscript has one Book.
placesNoThe header and footer places to set for the whole Book, each once: region header or footer, slot left, center or right, and either prints — words and fields such as {{book-title}}, {{chapter-title}}, {{author-name}} or {{page-number}}, or an empty string for nothing — or useBookDefault true to go back to what the Book printed there by default.
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.
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.
marginNumbersNoThe Book’s own margin numbers, lane by lane, with the fields tabularia_read_book_settings reports under marginNumbering: visible, includeInOutput (whether they print), side (left or right), interval for line and paragraph numbers, design and restart for section numbers. Section numbers also take format ("section-sign" for § 230, the default; "number", "period", or "parentheses") and placement ("paragraph-start" sets each number before its paragraph’s first line; null puts them back in the margin lane on their side).
headerFontFamilyNoThe typeface every header and footer in the Project is set in, or an empty string for the default. It is the Project’s, not one Book’s.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / marginNumbers / description
      Previous value: -"The Book’s own margin numbers, lane by lane, with the fields tabularia_read_book_settings reports under marginNumbering: visible, includeInOutput (whether they print), side (left or right), interval for line and paragraph numbers, design and restart for section numbers."New value: +"The Book’s own margin numbers, lane by lane, with the fields tabularia_read_book_settings reports under marginNumbering: visible, includeInOutput (whether they print), side (left or right), interval for line and paragraph numbers, design and restart for section numbers. Section numbers also take format (\"section-sign\" for § 230, the default; \"number\", \"period\", or \"parentheses\") and placement (\"paragraph-start\" sets each number before its paragraph’s first line; null puts them back in the margin lane on their side)."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the destructiveHint=true annotation, the description says precisely what is and isn't overwritten ('Only what you give changes'; a Book-level place wins over defaults but a Chapter's own wording is preserved), that a pre-change snapshot exists in the cloud, that retries with the same requestId are idempotent, and that the response carries 'previous' values usable as a revert request.

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?

Purpose comes first and every sentence carries operational content, but the requestId paragraph restates what the schema description already says and the multi-clause first sentence is dense. It is efficient overall, with modest redundancy.

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?

For a six-parameter, zero-required mutation tool with nested objects and no output schema, the description covers preconditions, partial-update semantics, override behavior, snapshot policy, idempotency, and what the response returns ('previous' in the tool's own shape) — everything needed to invoke and safely recover.

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; the description still adds real meaning by explaining the override precedence attached to `places` (Book-level setting vs. Chapter/page-level wording) and by explaining that `requestId` must be reused for retries but must be fresh for a differently-worded change. It stops short of adding syntax detail for the margin-number lanes, which the schema already carries.

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 opening sentence names a specific verb and three concrete resources — a Book's running headers/footers, its margin numbers, and the Project's header typeface — and anchors them to the corresponding Tabularia UI panel, so the agent can tell this apart from tabularia_set_book_details or tabularia_set_block_style without opening a schema.

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?

It states explicit prerequisites (read tabularia_read_book_settings first), an explicit scoping rule (change only what the Writer asked for), a snapshot precondition differentiated by environment (cloud auto-snapshot vs. 'with Tabularia open on this computer, take one with tabularia_take_snapshot first'), and retry rules for requestId.

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