Skip to main content
Glama

tabularia_set_block_style

Destructive

Change one Block Style — Body Text, Chapter Heading, Block Quote and the rest — for the whole Project or for one Book, the way the Block Styles settings in Tabularia do. Every paragraph set in that style follows at once. Only the fields you give change. Read tabularia_read_book_settings first. From the cloud a Snapshot is kept before the change; with Tabularia open on this computer, take one with tabularia_take_snapshot first. Supply requestId from the first call for safe retries and retain actionId for tabularia_undo_action. Undo restores only unchanged fields this action changed, preserving later unrelated settings. Book override ownership changes require the whole override to remain unchanged. If Studio reports a pending Draft update, no style change was submitted; retry with the same requestId after that update finishes.

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": {
      "styleId": "<styleId>"
    },
    "name": "tabularia_set_block_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookIdNoSet it for this Book alone. Left out, it is the Project’s style, which every Book without its own follows.
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.
styleIdYesWhich Block Style.
requestIdNo
textAlignNo
fontFamilyNoThe typeface.
fontSizePxNoThe size, in pixels.
lineHeightPxNoThe line height, in pixels.
marginLeftPxNoHow far its paragraphs stand in from the left of the measure.
followProjectNoWith bookId: the Book gives up its own style and follows the Project’s again.
marginRightPxNoHow far its paragraphs stand in from the right of the measure.
letterSpacingEmNoLetter spacing, in ems.
hyphenationEnabledNoWhether its paragraphs hyphenate.
paragraphSpacingPxNoSpace between paragraphs.
minimumLastLineWordsNoThe fewest words a paragraph’s last line may hold.
paragraphPaddingTopPxNoSpace above each paragraph.
paragraphPaddingBottomPxNoSpace below each paragraph.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the destructiveHint annotation by disclosing partial-update semantics ('Only the fields you give change'), snapshot behavior differing between cloud and local, precise undo semantics (restores only unchanged fields this action changed), and the book-override ownership constraint. The only shortfall is that permissions/authorization requirements for a destructive operation are never mentioned.

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 action and scope, then prerequisite and retry/undo details in a tight sequence with no filler. It is dense and the closing sentences on override ownership and pending Draft updates are jargon-heavy run-ons that take effort to parse.

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 17-parameter destructive mutation with no output schema, the description covers prerequisites, snapshots, retry safety, undo scope, and override constraints. It stops short of describing the response (actionId is referenced only as something to retain, never stated as a returned value) and says nothing about failure modes beyond the pending-Draft case.

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?

With 88% schema description coverage the baseline is 3, and the description earns an increment by explaining cross-parameter meaning the schema does not: omitting bookId means the Project-level style that all Books without their own follow, followProject surrenders a Book's override, and requestId enables safe retries. It does not, however, clarify the units or interactions of the many numeric style fields beyond what the schema already says.

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 ('Change one Block Style') plus the exact scope ('for the whole Project or for one Book'), with named examples of style values. This distinguishes it from paragraph-level siblings like tabularia_assign_paragraph_style, since it edits the style definition that every paragraph of that style follows.

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 prerequisites and sequencing: read tabularia_read_book_settings first, take a snapshot via tabularia_take_snapshot when running locally, and reuse requestId on retry after a pending Draft update. What it does not do is explicitly contrast itself with the paragraph-level styling sibling, so the agent must infer which tool applies when both could seem relevant.

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