Skip to main content
Glama

write_section

Write whole sections as .gsm YAML — each a list of node declarations in the form model_structure returns — adding the nodes that are new and updating the ones whose names exist. Beside an input put values: (a number for every period, an array, or a map of period to value); beside a constant put constant:. Uids are minted for you. Sections that read each other (a P&L and the balance sheet it depreciates from) go in one call, because the result of every call has to be a valid model. The way to build a model: the driving sections first, then the sections that read them, checks last.

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>",
      "sections": "<sections>"
    },
    "name": "write_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesModel uid (`model_…`), from model_list.
sectionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses important write behavior: new nodes are added, existing names are updated, UIDs are minted automatically, and every call must produce a valid model. It does not cover failure behavior or partial-write handling, but it adds substantial operational context to the mutation annotations.

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 description is dense but front-loaded around the core action, then adds syntax and sequencing guidance. Most sentences carry useful information, though the middle syntax sentence is packed and could be easier to scan.

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 mutation tool with no output schema, the description provides the key operational picture: what gets written, how node updates work, why interdependent sections belong together, and the recommended build order. It could say more about return values or error behavior, but the core call semantics are well covered.

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 only 50%, so the description has to compensate, and it does: it explains that each section is a YAML list of node declarations and clarifies the `values:` and `constant:` syntax beside node inputs. It still leaves the `model` parameter mostly to the schema and does not fully restate every YAML field.

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 description states a specific verb and resource: writing whole sections as .gsm YAML, with new nodes added and existing nodes updated by name. It is clear enough to distinguish a bulk section writer from a model reader, but it does not explicitly differentiate itself from sibling write tools such as add_section or add_nodes.

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?

It gives concrete usage context: use one call for sections that read each other, and build a model by creating driving sections first, then dependent sections, then checks. The guidance is strong for sequencing, though it does not explicitly compare this tool against alternative node-writing tools.

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