Skip to main content
Glama

tabularia_add_ornament

Destructive

Put a divider ornament before or after a Block, in the body or on a Book’s title page: the plain rule, or the art decorationId names. Or send placements to place many at once: a headpiece above one Chapter’s title, a tailpiece after a Chapter’s last Block, a line ornament between sections, or a vignette on a title page, each named by the Chapter’s opening Block, the paragraph, or the Book. Every placement is checked before any is made, and they go in order. The Writer restyles them from their decoration library. A Draft written from here cannot hold a new Block, so ornaments go into the Base Draft: send them with target "base", and a Snapshot is taken first. Sent without it, nothing is written and the answer says why. The answer names each ornament placed, and previous holds the calls that put things back: tabularia_remove_ornament with the blockIds added, and this tool with the headpieces replaced. A Scene, Chapter or Act boundary is not an ornament and is not added from here. 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_add_ornament"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNoWhere the change goes, as for tabularia_propose_edit: "draft" is your own Draft, "new-draft" starts a fresh one, and "base" makes it in the Base Draft itself, after a Snapshot. Left out, it goes to your own Draft. Use "base" only when the Writer asked for the change in their text.
draftIdNoMake the change in this Draft, from tabularia_list_drafts. It settles where the change goes; leave target out.
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.
widthPxNoIts width, in whole pixels, at least 48. The page keeps it no wider than the text.
draftNameNoWhat to call the Draft when target is "new-draft".
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.
placementsNoMany ornaments at once, up to 500, placed in order in the Base Draft behind one Snapshot. When given, the single-ornament fields above are not used; send it with target "base".
afterBlockIdNoStand it after this Block, by id from a window read. Give this or beforeBlockId, not both.
decorationIdNoWhich ornament art to use: the id of an ornament tabularia_list_decorations lists, built-in or one of the Project’s own (custom.divider.…), or the choiceId tabularia_open_decoration_upload answered with. Left out, the art stays as it is, and a new ornament is the plain divider rule.
paddingTopPxNoSpace above it, in whole pixels from 0 up.
beforeBlockIdNoStand it before this Block, by id from a window read. Give this or afterBlockId, not both.
paddingBottomPxNoSpace below it, in whole pixels from 0 up.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / placements
      Added value: +{
      +  "description": "Many ornaments at once, up to 500, placed in order in the Base Draft behind one Snapshot. When given, the single-ornament fields above are not used; send it with target \"base\".",
      +  "items": {
      +    "description": "One ornament placed. position says what it is: \"headpiece\" is a Chapter’s own ornament above its title (chapterBlockId); \"tailpiece\" a divider after a Chapter’s last Block (chapterBlockId); \"line\" a divider beside a paragraph (afterBlockId or beforeBlockId), as between sections; \"title-page\" a vignette among a Book’s title-page lines (bookId, and titlePageSpot \"top\", \"after-title\" (the default) or \"bottom\").",
      +    "properties": {
      +      "afterBlockId": {
      +        "type": "string"
      +      },
      +      "beforeBlockId": {
      +        "type": "string"
      +      },
      +      "bookId": {
      +        "description": "The Book whose title page takes the vignette.",
      +        "type": "string"
      +      },
      +      "chapterBlockId": {
      +        "description": "The Chapter, by the Block that opens it, from tabularia_project_metadata.",
      +        "type": "string"
      +      },
      +      "decorationId": {
      +        "description": "The ornament art, as decorationId above. On a headpiece, null takes the Chapter’s own headpiece off.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "paddingBottomPx": {
      +        "description": "Space below it, in whole pixels from 0 up.",
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "paddingTopPx": {
      +        "description": "Space above it, in whole pixels from 0 up.",
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "position": {
      +        "enum": [
      +          "headpiece",
      +          "tailpiece",
      +          "line",
      +          "title-page"
      +        ],
      +        "type": "string"
      +      },
      +      "titlePageSpot": {
      +        "enum": [
      +          "top",
      +          "after-title",
      +          "bottom"
      +        ],
      +        "type": "string"
      +      },
      +      "widthPx": {
      +        "description": "Its width, in whole pixels, at least 48. The page keeps it no wider than the text.",
      +        "minimum": 48,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "position"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 500,
      +  "minItems": 1,
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description adds substantial unannotated behavior: all placements are validated before any is made, they apply in order, a Snapshot is taken first, and without target "base" nothing is written and the answer explains why. It also discloses the write restriction on Drafts (a Draft cannot hold a new Block), the restyling from the decoration library, and requestId idempotency semantics including that a retry returns the first result without writing again.

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 intent is front-loaded in the first sentence, but the body is a long run of em-dash-heavy clauses, and the requestId paragraph spends two sentences on material the schema field already covers. Several points (target "base", Snapshot) are restated across sentences, costing density without adding information.

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 destructive, multi-mode mutation with 12 parameters and no output schema, the description covers the safety path (validate-then-apply, Snapshot), the draft-restriction workaround (target "base"), idempotent retry, and what the response names, plus the counterpart undo call.

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 meaning by explaining what a placement is named by ('the Chapter's opening Block, the paragraph, or the Book') and by framing 'placements' as an ordered, single-Snapshot batch. The requestId explanation largely restates the schema field, which keeps this below 5.

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?

Opens with a specific verb and resource ('Put a divider ornament before or after a Block, in the body or on a Book's title page') and immediately enumerates the concrete variants: plain rule, decorationId art, headpiece, tailpiece, line, vignette. An agent can distinguish this from tabularia_remove_ornament and tabularia_arrange_ornament 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?

Explicitly routes the agent: batch placements go with target "base", base is 'only when the Writer asked for the change in their text', and undo is named ('tabularia_remove_ornament with the blockIds added'). It also states an exclusion — a Scene, Chapter or Act boundary is not an ornament and is not added here — which is exactly the when-not guidance the dimension asks for.

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