Skip to main content
Glama

tabularia_assign_paragraph_style

Destructive

Assign an existing named paragraph style to up to 5,000 ordinary paragraphs by stable Block IDs in a named editable non-Base Draft. Name project, draftId, requestId, and namedParagraphStyleId explicitly. Read namedParagraphStyles from tabularia_read_book_settings to find existing IDs; the chosen style must also exist in the target Draft. Book-owned styles can apply only within that Book. Positional indices, missing or repeated IDs, nonparagraph Blocks, and targets outside the Draft scope are refused. The style definition, paragraph wording, and Block order remain unchanged. Assignment follows Studio’s named-style operation: it clears paragraph formatting overrides and uniform font typography marks so the paragraph inherits that style. First call without confirmationToken to preview; show the selection and style to the Writer, then repeat with the token after conversational confirmation. Tokens bind the exact source revision, style, caller, and targets for ten minutes. At most 4 MB of recovery data, subject to transport input limits. The current publication owner reads a complete inactive Draft; hosted Drafts above 20,000 Blocks are refused. Retain requestId and IDs on retries; identity reuse for different content is refused. Publication is atomic in both connectors. The Draft remains for review and merging; native writes require the assistant-owned, inactive Draft restriction. The actionId supports targeted tabularia_undo_action in the same connector. Undo preserves unrelated attributes and other paragraphs, and refuses changes to affected formatting or spans. No whole-Project restore is used.

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": {
      "project": "<project>",
      "draftId": "<draftId>",
      "requestId": "<requestId>",
      "blockIds": "<blockIds>",
      "namedParagraphStyleId": "<namedParagraphStyleId>"
    },
    "name": "tabularia_assign_paragraph_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftIdYes
projectYesWhich 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). Always name it, even when only one Project is open.
blockIdsYes
requestIdYes
confirmationTokenNo
namedParagraphStyleIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description goes well beyond them: it explains that formatting overrides and uniform typography marks are cleared, that tokens bind revision/style/caller/targets for ten minutes, the 4 MB recovery-data cap, the 20,000-Block hosted-Draft limit, atomicity, and undo scope. Nothing here contradicts the destructive annotation since the clearing of overrides is a genuine mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and the preview/confirm workflow are front-loaded, but the single dense paragraph then drifts into undifferentiated trailing material about connector atomicity, native-write restrictions, and whole-Project restore that an agent does not need in order to call the tool. The content is valuable but the structure is a wall of sentences rather than ordered sections.

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 destructive, multi-target mutation with no output schema and sparse schema descriptions, the definition covers workflow, limits, refusal cases, token lifecycle, and undo. It stops short of describing the shape of the preview response beyond 'show the selection and style to the Writer', which is the one thing an agent must handle without a schema.

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 only 17% schema description coverage, the description carries most of the burden and does so: it explains the preview-vs-confirm role of confirmationToken, requestId retention on retries and identity-reuse refusal, the paragraph-only/unique/stable-ID constraints on blockIds, and the editable non-Base Draft requirement for draftId. It gives no concrete format example for Block IDs, leaving one gap.

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?

The opening sentence names a precise verb (assign), a precise resource (an existing named paragraph style) and a precise scope (up to 5,000 ordinary paragraphs by stable Block IDs in a named, editable, non-Base Draft). It never states the contrast with the sibling tabularia_set_block_style, so an agent must infer which one applies, which keeps this at 4 rather than 5.

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 an explicit alternative source of truth ('Read namedParagraphStyles from tabularia_read_book_settings to find existing IDs'), a two-step preview/confirm protocol, and the conversational-confirmation condition that selects the confirm step. It also lists the exact refusal conditions (positional indices, missing or repeated IDs, nonparagraph Blocks, out-of-scope targets).

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