Skip to main content
Glama

workbook_fit

Read-onlyIdempotent

Every template in the library read against an attached workbook, so the import can be built from the blocks that fit and by hand for the rest. Three ways a workbook answers to a pattern, all tried on every template: the rows every model of the pattern has, matched by label against the template's names, aliases and titles (statements, SaaS metrics, a DCF, a market's curves, a DSGE's parameters); the rows a member of an open menu carries — a mine, a country, a project — found under the sheet's headings or in its label prefixes and returned as the pick to pass to template_get (a commodity balance); and a sheet of records whose fields answer to a template's table, with its category values matched to a closed menu (a general ledger's journal and chart of accounts). Every match is reported so you can disagree, with where the sheet types a row the pattern computes or the reverse; the template's rows are named as the template spells them, relative to the section it lands as (root, unless template_get is given at), which is the spelling rename and bind take. Then the numeric rows and record tables no present block of any pattern claims, which are built by hand from the sheet's own formulas or added as ledgers, and the rows the DSL cannot express, which are held as values and named. Step nought of an import: read this before template_get, and expect several patterns to each claim a part.

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

Input Schema

NameRequiredDescriptionDefault
modelYesModel uid (`model_…`), from model_list.
sheetNoFit one sheet only. Default: the whole workbook.
attachmentNoThe attachment id. May be omitted when one workbook is attached.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish this as a safe, idempotent, closed-world read, so the description's contribution is the reporting behavior: every match is surfaced so the caller 'can disagree', rows are named as the template spells them relative to `root` (or `at`), and unclaimed rows/DSL-inexpressible rows are held as values. This is meaningful disclosure, but the prose never plainly states what the response looks like or whether anything on the workbook side is mutated by the read.

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 purpose is front-loaded in sentence one, but the middle is a single sprawling run-on built from em-dashes and stacked parentheticals ('a mine, a country, a project', 'a DSGE's parameters', 'a market's curves') that force re-reading. The illustrative examples carry some value for recognizing pattern families, but the sentence structure obscures rather than organizes the three matching modes.

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 read-only tool with no output schema, the description does the heavy lifting: it enumerates the three matching modes, explains how matched rows are named for downstream rename/bind, and covers residual rows and DSL-inexpressible values. What is missing is a plain statement of the shape of the report itself (grouped by pattern? per sheet?), which leaves the agent unsure how to parse results.

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%, so `model`, `sheet`, and `attachment` are already documented in the schema; the description adds nothing about their format or constraints. Mentions of `pick` and `at` refer to template_get's parameters, not this tool's, so they do not enrich this schema.

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 opening states a specific operation: every template in the library is read against an attached workbook to determine which blocks fit. It distinguishes itself from template_get by declaring itself 'step nought of an import' that feeds template_get with a `pick`. The verb is buried in metaphor ('answers to a pattern', 'claim a part'), so the resource is clear but the action takes effort to extract.

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?

Explicit sequencing is given: 'read this before template_get', and the result of the closed-menu match is 'the `pick` to pass to template_get'. It also sets expectations that several patterns will each claim a part. No exclusions or comparison against workbook_structure, workbook_draft, or workbook_reconcile is offered, which is the main gap.

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