Skip to main content
Glama

Build the .xlsx

build_workbook

Builds the real Excel workbook from an approved plan, filling every tab and block with labels, numbers, and working formulas while blocking until notes are closed and layouts approved.

Instructions

Build the real workbook from the approved plan. Supply content for every block on every tab, by plan block id: real labels, real numbers, working formulas (use {{blockId!Label}} / {{blockId!r,c}} / {{blockId!col:c}} references from get_plan so addresses resolve, including across sheets), rowFormats on a table whose rows are the metrics and colFormats on a table whose columns are the metrics. It refuses while notes are open or layouts are unapproved, takes every position from the plan rather than from this call, and returns one image per sheet to look at before the file goes to the user.

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": {
      "project": "<project>",
      "sheets": "<sheets>"
    },
    "name": "build_workbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
readmeNoCover page text, used only when the approved plan has a tab named Read Me with no blocks; the builder writes the cover there
sheetsYes
projectYes
fidelityNoThis build only, leaving the plan's setting alone. strict keeps the approved widths; balanced lets the builder fit a block to its content and align it to the sheet's block width, within two columns
fileNameNoFile name without extension. Default: project name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does so well: it discloses the refusal conditions, that geometry comes from the plan rather than this call, and that the call returns one image per sheet for visual review before delivery. It stops short of saying whether an existing file is overwritten, where output lands, or whether the build is reversible.

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

Conciseness5/5

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

A single tight paragraph that front-loads the action, then the input contract, then the gating conditions and return value. No filler sentences and no restatement of the title.

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 5-parameter tool with deep nested objects and no output schema, the definition covers the essentials: what to supply, how references resolve, when it refuses, and that images come back. It could do slightly more on the fidelity trade-off and file naming, which are only handled in 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?

At 60% schema coverage the description meaningfully supplements the schema: it explains the {{blockId!Label}} / {{blockId!r,c}} / {{blockId!col:c}} reference forms and the rowFormats-versus-colFormats rule for row-metric and column-metric tables. The remaining params (project, fileName, fidelity, readme) are left to the schema's own descriptions.

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?

"Build the real workbook from the approved plan" names a specific verb and artifact, and the definition immediately scopes the input as content for every block on every tab keyed by plan block id. That distinguishes it cleanly from get_plan (which produces the plan) and from build_deck/restyle_workbook/import_workbook.

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 states a hard precondition for invocation — refusal while notes are open or layouts are unapproved — and directs the agent to get_plan for the reference syntax needed to fill blocks. It does not explicitly contrast itself with restyle_workbook or import_workbook, so the when-not guidance is implicit rather than exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.