Skip to main content
Glama

workbook_draft

Pass one of a workbook import, written for you from the profile: every row that carries a figure or a check becomes a node — a section per sheet, a subsection per heading, the leaf from the row's label — with the sheet's formula translated to the DSL (references to node names, Excel's functions to the DSL's, a row that chooses by a scenario toggle as one input holding each case's values in that case's scenario, an NPV or IRR as the DSL's own gated to one cell), a typed row an input left empty for workbook_fill, a scalar a constant carrying its number in the base unit, and a row the DSL cannot express held as a value with the Excel formula quoted. Every node carries the sheet's title, unit, number format and citation. A mirror of a row on another sheet is not written twice; a row already in the model keeps its own name and formula unless overwrite says otherwise. Pass names for the rows whose name should be a template's or the analyst's ({"Summary!Project NPV": "valuation.npv"}) and sections for a sheet that should land somewhere other than under its own name. Several sheets, or all of them, go in one call, so the sheets that read each other arrive together. Then workbook_fill, verify, and workbook_reconcile; what the draft could not translate is listed as held with the reason, and a reference it could not resolve as unresolved, each with the name it wrote so set_formula can finish it. Read the result rather than the sheets: the listing is for the rows this names.

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

Input Schema

NameRequiredDescriptionDefault
modelYesModel uid (`model_…`), from model_list.
namesNoRow → node name, for rows the sheet's own name will not do for: `{"Summary!Project NPV": "valuation.npv", "Model!Revenue": "income.revenue"}`. Keys are `Sheet!Label`, `Sheet!row N` or the citation the listing prints.
scaleNoThe sheet's magnitude, as workbook_fill and workbook_reconcile take it: a number for every sheet or `{Model: 1000}` per sheet, for a sheet whose corner says USD 000s. Where it says nothing, each row's own unit text decides (`kUSD` is a thousand); pass the same to the fill and the reconcile.
sheetsNoThe sheets to draft. Default: every sheet with rows to import. A sheet declared out of the import is simply left off.
sectionsNoSheet → section path: `{"CF": "cashflow", "BS": "balance"}`. Default: the sheet's name as a path.
overwriteNoRewrite rows the model already holds from the sheet. Default false: a row already cited is left as it is and only referenced.
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

A3.6/5.0
Behavior4/5

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

Beyond the annotations it discloses the key mutation semantics: mirror rows are not written twice, existing rows keep their own name and formula unless `overwrite` says otherwise, and untranslatable content is reported as `held`/`unresolved` with reasons and a written name each. This is consistent with readOnlyHint=false, destructiveHint=false and idempotentHint=false. What is missing is an explicit statement of what the call actually creates or that it mutates the model.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single dense paragraph of roughly 250 words whose opening sentence alone stacks a dozen clauses about DSL translation cases. It is information-rich but not front-loaded or structured, forcing the agent to parse before it learns the basic contract. Bullet-like separation of the translation rules from the follow-up workflow would help considerably.

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 seven-parameter tool with nested objects and no output schema, the description does the heavy lifting on returns: it names the `held` and `unresolved` result fields, their reasons, and the written name needed by set_formula. Combined with full schema coverage on inputs, an agent has enough to call it and interpret the result. Only the exact success payload remains underspecified.

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 description coverage is 100%, so every one of the seven parameters is already documented, including examples for `names` and `sections`. The description mainly restates those semantics, adding only the operational note that `scale` should be passed identically to the fill and the reconcile. That is useful but marginal, so the high-coverage baseline of 3 applies.

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 concretely describes the transformation: every row with a figure or check becomes a node, a section per sheet, a subsection per heading, formulas translated to the DSL, typed-but-empty rows left for workbook_fill. That is a specific verb-plus-resource picture an agent can act on. The opening phrase 'Pass one of a workbook import' is awkward and never plainly says 'creates nodes in the model', which keeps it short of a 5.

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 a clear sequencing chain — this first, then workbook_fill, verify, and workbook_reconcile — and states that several or all sheets should go in one call so interdependent sheets arrive together. It also routes follow-up work to set_formula for held and unresolved items. It does not name when to prefer this over other structuring paths (e.g. add_nodes, workbook_structure) or state exclusions, so it is context-rich but not fully disambiguating.

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