Skip to main content
Glama

workbook_reconcile

Read-onlyIdempotent

The model beside the workbook it was imported from: every node whose source cites a workbook row (the string workbook_structure hands you), or that map names, compared period by period with the row's cached values, scaled by scale where the sheet states a magnitude (1000 for a sheet in thousands). Reports the rows that agree, the ones that do not with the worst period and both figures — upstream first, with fixFirst naming the differing rows that read nothing that differs, which are the causes — the workbook's numeric rows nothing in the model cites, with its valuations (an NPV, an IRR, a multiple, a payback) named apart as valuationsNotInModel with how to write each, and the model's nodes that cite nothing. A sheet on a coarser grain than the model — an annual view of a quarterly model — is never imported and never on the check: its rows are compared as rollups, the model's own rows rolled up to the sheet's grain by each row's rollup and matched by label to the sheet the rollup reads. leaveOut declares rows you are not importing on purpose, with the reason; they come off the completeness check. The acceptance test of an import — run it after pass two, and treat every mismatch as your formula, your magnitude or your period, never as the workbook's: a calculated row that differs is a wiring error, an input that differs is a scale or a column.

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_reconcile"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoList the rows that agree as well as the ones that do not. Default false.
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.
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.
leaveOutNoRows you are deliberately not importing, each with its reason: `{"sheet": "Lambdas", "why": "helper functions with no figures"}` for a whole sheet, or `rows` by number or label for part of one. They come off `workbookRowsNotInModel` and are echoed as `leftOut`, so say them here rather than in prose: a row left out with a reason is a decision, one left out silently is work undone. A whole sheet declared out keeps its single-point outputs (an NPV, an IRR, a MOIC, a payback) on the check, echoed as `keptOnCheck`: a summary is a view, its valuation is a result.
scenarioNoThe scenario to evaluate. Default: the one the analyst is looking at.
toleranceNoAbsolute difference allowed, in the model's units — and on a percent-formatted row, in percentage points, so the default passes a rate out by half a point and fails one out by ten. Default 0.5.
attachmentNoThe attachment id. May be omitted when one workbook is attached.
relativeToleranceNoRelative difference allowed. Default 0.0001. A period passes if either tolerance holds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered; the description earns credit by disclosing non-obvious semantics: coarser-grain sheets are never imported and never on the check but are compared as `rollups`, `leaveOut` entries are removed from the completeness check and echoed as `leftOut`, and a whole sheet declared out keeps its single-point valuations on the check as `keptOnCheck`. It does not describe output shape or size beyond these category names, but for a read-only analysis tool that is a modest gap.

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, but the body is a dense, clause-heavy paragraph where topics (rollups, leaveOut, valuations, interpretation rules) are chained with dashes and parentheticals rather than separated. Nearly every clause carries real information, so little is wasted, but the parse cost is high for an agent skimming for the operative instruction.

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 9-parameter tool with nested objects and no output schema, the description does the work an output schema would otherwise do, enumerating the report's categories and naming specific fields (`fixFirst`, `valuationsNotInModel`, `rollups`, `leftOut`, `keptOnCheck`). What remains thin is the shape of each returned row and how the report scales on a large workbook, but an agent has enough to invoke it correctly and read the result.

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

Parameters3/5

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

Schema coverage is 100% and the schema itself already documents `scale`, `leaveOut`, `tolerance`, `map` and `relativeTolerance` in depth, so the baseline is 3. The description adds interpretive framing — a row left out with a reason "is a decision, one left out silently is work undone," and that a differing calculated row is a wiring error while a differing input is a scale or column error — but it does not add format or syntax detail beyond what the schema supplies.

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 opens with a precise identity for the tool — the model beside the workbook it was imported from, compared period by period — and enumerates the four things it reports: agreeing rows, disagreeing rows with the worst period and both figures, workbook rows nothing cites (with valuations split out as `valuationsNotInModel`), and model nodes that cite nothing. It also anchors itself to the sibling that produces the input, `workbook_structure` and its citation strings, so an agent can place it in the workflow 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Timing is stated explicitly: "The acceptance test of an import — run it after pass two," which tells the agent this is a post-import verification step rather than a discovery tool. It also gives a rule for interpreting results (treat every mismatch as your formula, magnitude or period). It stops short of naming an alternative tool or stating when not to call it, so it is clear context without full routing guidance.

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