Skip to main content
Glama

document_set

Lay out a document for print — a report, a one-page summary, a board pack, a set of statements: whatever the person asked for, never a kind they did not — which the person exports as a PDF from the model's Documents page. Written whole: blocks in order replaces the document's blocks, and the fields you pass replace its own (name picks an existing document; without one, a new document is made from title). title is what is printed; label is what the document is called in the model's list where that differs ('Annual report v2'). header and footer are the running lines on every page but the cover, and page its size, orientation and margins; brand its house style — a logo, an accent colour, typefaces, the firm's name for {brand} in a running line — only as the person gives it. Blocks: text (Markdown whose figures are references, {{bs.cash[2025]}}, {{valuation.per_share@astra_at_book}} for the figure as another scenario has it, {{prices.close}} for a table's price column at its latest entry — never a typed number; or section to draw that section's own text: prose about the model, a commentary or a note, is written with add_section text and drawn here, so it lives in one place), statement (a title and lines: ref a row or a section, label only where the line should read other than the row's title, style heading/subtotal/total, negate to show a cost as a deduction, indent; a line with only a label is a heading, an empty line a space), chart (a chart's uid), page_break, logo (one of the house style's logos in the body: logo names a further one, absent the main; height in mm), risk (a reading of the model's simulation, run where the document is drawn — view fan with node for a row's spread over the periods, drivers with node for what moved it most, checks for how often each check fails across the trials, statistics for the risk specification's statistics, statistics naming which; only on a model that declares distributions), and signature (where the document is signed: a title above, one line per signatories entry with the name and role under it, dated for a date line — names only as given, a name left out for a line signed by hand); a block's width (half, third, two_thirds) sets it beside the next. Columns are periods — axis labels, or on a finer axis a coarser period's label (2025, 2025-H1, 2025-Q3, or a month of a weekly model) rolled up by each row's own rule, a flow summed and a balance closed — any run of them, the most recent first in every table of the document, a total before the periods inside it (["2025", "2025-Q4", "2025-Q3", "2025-Q2", "2025-Q1"]), whatever order a source sheet printed them in; absent, the closed year and the one before. A column 2025 vs 2024 is the change between two columns and 2025 vs 2024 % the same in per cent — the comparison a results-of-operations table puts beside the two years. Anything the model does not hold is refused by name. remove takes the document away.

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": {
      "model": "<model>"
    },
    "name": "document_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoAn existing document's name, to change or remove it.
pageNo
brandNoThe house style it prints in — only what the person asked for or the model already carries; a document is unbranded unless they say. Passed whole: it replaces the document's brand, and an empty object takes it away.
labelNoWhat the document is called in the model's list where it should differ from the printed title — 'v2', 'sanitised for the bank'. Never printed; an empty string takes it away.
modelYesModel uid (`model_…`), from model_list.
titleNoThe title printed on the cover and at the head of each page.
blocksNo
footerNoThe line at the foot of every page but the cover, the same way. Absent, '{page} / {pages}' at the right.
formatNoThe file the document downloads as: pdf (the default), or docx — a Word file, for a document somebody will edit and send on. Set it only when asked.
headerNoThe line at the head of every page but the cover, in three slots of text with placeholders {title}, {subtitle}, {model}, {brand}, {date}, {page}, {pages}, and {logo} (the house style's logo, drawn at the line's height) or {logo:name} (one of its further logos). Absent, the title at the left; every slot empty, none.
removeNo
periodsNoThe columns every statement shows, left to right.
scenarioNoThe scenario the figures are drawn in; base unless said. A figure in prose that should read another scenario names it: `{{name@scenario}}`.
subtitleNoThe line under it: the entity and the period ('For the year ended 30 June 2025').
coverLogoNoWhich logo the cover draws: false for none, the name of one of `brand.logos`, or null for the main logo (the default). Only as the person asks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior1/5

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

The description discloses substantial behavior, including that `blocks` replaces the document's blocks entirely, that unspecified fields are left alone, and that `remove` 'takes the document away.' However, this directly contradicts the annotation `destructiveHint: false`, since deleting a document is destructive; under the rubric that contradiction requires a score of 1.

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 is front-loaded, and most content is relevant for a 15-parameter layout tool. But the description is a dense, run-on paragraph with heavy parenthetical and semicolon chaining, making it harder to scan than necessary.

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 complex document-layout tool with no output schema, the description covers creation, update, removal, branding, headers and footers, block types, periods, and refusal of unknown references. It does not describe the tool's return value or permission requirements, but otherwise it gives enough context to call the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Beyond the already detailed schema, the description explains `periods` roll-up behavior, ordering, total placement, and comparison columns such as `2025 vs 2024 %`. It also adds reference syntax for text blocks, explains when `risk` is valid, and clarifies block width and alignment behavior.

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 states a specific verb and resource: 'Lay out a document for print,' with concrete document examples. It also makes the create-vs-update distinction explicit: `name` picks an existing document, while without one a new document is made from `title`.

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?

The description gives clear usage context, including 'whatever the person asked for, never a kind they did not' and 'only as the person gives it' for branding. It also routes model prose to add_section `text` and says that text is drawn here via `section`, though it does not explicitly distinguish reading with document_get or handling private documents.

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