Skip to main content
Glama

add_section

Declare a section (a group) by path, with an optional title and colour. Sections are derived from node names, so this is only needed to give one a title before its nodes exist; adding a node under a new path also works. A section that already exists is amended rather than refused: what you pass is set, what you leave off stays as it is, so this is also how a section the model already has is told what it holds. grouping says what the sections inside this one are to each other, which nothing else in the document can say: module for the stages of one thing (a Financials holding an income statement, a cash flow and a balance sheet, which read each other by design), family for several of a kind (an Assets holding North and South, which are alike and must never read each other's assumptions). Say it whenever you make a section that will hold other sections — without it the asset-boundary checks guess from shape, and a set of statements guesses as a family of mines. text is the section's prose in Markdown — a note to the accounts, a directors' report, what a block of assumptions rests on — and every figure in it is a reference, never a typed number: {{bs.receivables[2025]}} the row at a period, {{-bs.gst[2025]}} the same with its sign turned, {{valuation.npv}} a constant (or a series at its last closed period), {{valuation.per_share@upside}} the figure as another scenario has it, {{prices.close}} a table's price column at its latest entry (what a feed last pulled), {{p_loss}} a statistic of the risk specification (drawn from the simulation; never in a title). A rename carries the references; a figure the model does not hold is a row you add first and then refer to. A section is one of three kinds, never two: rows, a ledger, or a page of text. Text goes only on a text section — a section of its own with no rows, which passing text to a new section makes — never over a section of rows. Prose about the model — a valuation commentary, a note, a directors' report — lives in a text section, and a document draws it with a section block, so it is written once and every document and the grid show the same words.

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>",
      "path": "<path>"
    },
    "name": "add_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYese.g. `balance` or `income.costs`.
textNoThe section's prose, Markdown, with figures as references: `{{name[2025]}}`, `{{-name[2025]}}`, `{{name}}`, `{{name@scenario}}`. Only on a text section; a new section given text is one. Replaces the text it had; an empty string empties the page.
colorNo
modelYesModel uid (`model_…`), from model_list.
titleNo
groupingNoWhat the sections inside this one are: `module` the stages of one thing, `family` several of a kind.
quantityNoWhat rows made here measure unless they say otherwise.
sectionTypeNoWhat the section is: `rows` (rows over the periods) or `text` (a page of prose, holding no rows). Defaults to `text` for a new section given text, else `rows`. A ledger is made with add_ledger.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses that existing sections are amended, that supplied fields are set while omitted fields persist, and that text replaces prior prose and an empty string empties the page. It also explains that renames carry references and that text sections are distinct from row sections, which is meaningful behavioral context for a write operation.

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?

The definition is front-loaded with the purpose and key usage constraints, and most detail is relevant to correct invocation. It is nonetheless dense and lengthy, with some overlapping explanation of reference syntax that is also present in the schema, so it is clear but not maximally concise.

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 an eight-parameter mutation tool with no output schema, the description covers creation, amendment, section kinds, grouping semantics, text references, and the ledger alternative very thoroughly. The main remaining gap is that it does not say what the call returns or how success is represented, but otherwise the invocation context is complete.

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 75% schema description coverage, the baseline is 3, but the description adds substantial meaning for the most semantically complex parameters. It explains `grouping` with module versus family examples, describes the reference grammar for `text`, and clarifies `sectionType` defaults and the text-versus-rows constraint, though `title`, `color`, and `quantity` remain relatively thin.

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 first sentence states a specific verb and resource: "Declare a section (a group) by path, with an optional title and colour." It also distinguishes this from simply adding a node under a new path and from making a ledger with add_ledger, so an agent can identify the tool's role without opening sibling schemas.

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?

The description gives explicit usage conditions: this is only needed to title a section before its nodes exist, adding a node under a new path also works, and existing sections are amended rather than refused. It also states when not to use it for prose over rows and points ledger creation to add_ledger.

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