Skip to main content
Glama

workbook_fill

Pass two of a workbook import, done for you: every input, constant and mixed row of the model whose source cites a workbook row (the string workbook_structure hands you), or that map names, takes that row's cached values — an input its values period by period, aligned by the sheet's column labels; a constant its one number; a calculated or mixed row the cells the sheet types in columns the header marks actual, as actuals. Scaled by scale where the sheet states a magnitude (1000 for a sheet in thousands, or whose unit says kUSD; percent-formatted rows are never scaled). Every cited node, calculated ones too, takes the sheet's row label as its title where it has none, the sheet's unit where it declares none and the sheet's number format (decimals, percent or currency, the scale) where it carries none; a unit the node declares that differs from the sheet's is reported. Reports what it wrote, what it could not (a column not on the model's axis, a row with no cached figures, a typed cell past actualsThrough) and the workbook rows nothing in the model cites yet. Run it after pass one has declared the inputs, and again after adding sections; never retype cached values with set_values when this can copy them.

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": "workbook_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
mapNoNode → workbook row, for nodes whose source does not cite one: `{"income.revenue": "Model!Revenue"}`, `"Model!row 5"`, or a citation string; or `{row, scale}` when one row has its own magnitude.
modelYesModel uid (`model_…`), from model_list.
namesNoFill only these nodes. Default: every node that cites a row.
scaleNoWhat a workbook figure is multiplied by to reach the model's base unit: a number for the whole workbook, or `{"Model": 1000, "Assumptions": 1}` by sheet, for a sheet whose magnitude is written in its corner. Where you pass none for a sheet, each row's own unit text decides — a `uom` of `kUSD` is 1000, `t` or `USD/oz` is 1 — so a sheet that writes the unit beside every row wants no scale at all. Percent-formatted rows are never scaled.
scenarioNoThe scenario to fill. Default: the one on screen.
attachmentNoThe attachment id from attachment_list. May be omitted when one workbook is attached.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description explains that cached values are written, how scaling and percent rows are treated, how titles/units/number formats are filled only where missing, and what failures or uncited rows are reported. This gives an agent a rich behavioral picture of a non-destructive but mutating operation.

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 content is information-dense but presented as a long, convoluted paragraph with awkward phrasing such as 'the cells the sheet types in columns the header marks actual, as actuals.' It front-loads the pass-two framing, but the lack of structure makes it harder to scan than it should be.

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 six-parameter mutation tool with no output schema, the description is complete enough: it covers the write behavior, scaling rules, metadata handling, failure reporting, and when to rerun. The remaining parameter details are fully covered by the 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?

Schema coverage is 100%, so the schema already carries per-parameter descriptions. The description adds useful integrated semantics for `source`, `map`, and `scale`, including magnitude detection and percent-row exceptions, but does not add much beyond the schema for `names`, `scenario`, or `attachment`.

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 description states a specific operation: pass two of a workbook import, where model rows citing workbook rows or named in `map` receive the sheet's cached values. It also distinguishes this from workbook_structure (pass one) and set_values, so an agent can identify the tool's role without opening the 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?

It explicitly says to run after pass one has declared inputs and again after adding sections. It also gives a clear alternative rule: never retype cached values with set_values when this tool can copy them.

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