Skip to main content
Glama

workbook_structure

Read-onlyIdempotent

An attached workbook as the model it is, whatever it models. Without sheet, it answers the question an import asks first — what is the faithful representation of this workbook in GraphSheets — as a plan: the one axis the model takes (the finest grain, the widest range, the last actual column) and which sheets disagree with it; for every sheet whether it is sections of nodes, a ledger, constants, headings or empty, with the heading groups that become subsections, its checks, its held rows, its mirrors and its rollup columns; and fidelity, every place a faithful representation is not available (two grains, a formula the DSL lacks, a scenario switch, a macro, another workbook, a circular reference) and what the import does instead. Beside it, every sheet's period axis, how many of its rows are typed, worked out, mixed or constants, whether it is a table of records (a journal, a price history: fields, entries, the values of a category column), its units hint, and the workbook's notes — the orientation call, one step. With sheet: that sheet's rows in order, each saying whether it is an input (typed in every period), calculated (a formula in every period, given once in label terms — {Capacity} * {Utilisation}, {Consumption}[-1] * (1 + {Parameters!Growth}), {Revenue} - {Cost of sales}), mixed (typed in some periods, a formula in others), a constant, or a check, the heading it sits under, the Excel functions it calls and whether the DSL can express them. This is the wiring the model rebuilds: a row the sheet works out is a formula in the model, never a row of numbers; a table of records is a ledger, never rows. Pass sheets to read several sheets in one call — every sheet you will build from, in one step, is the ordinary way to read a workbook. Pass values: true to get each row's cached values by period as well; you rarely need them, because workbook_fill writes a row's cached values onto the node that cites it without your retyping 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_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many rows. Default 150, maximum 400.
modelYesModel uid (`model_…`), from model_list.
sheetNoA sheet name from the overview. Omit for the overview of every sheet.
offsetNoFirst row of the listing to return, zero-based. Default 0.
sheetsNoSeveral sheet names, each returned whole in one call; `offset` and `limit` do not apply.
valuesNoInclude each row's cached values by period. Default false.
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.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed world), so the bar is lower, and the description still adds substantive context: row classifications mean an 'input' is typed in every period, formulas are given in DSL label terms, `offset`/`limit` do not apply to `sheets`, and the tool reports fidelity gaps (two grains, missing DSL formulas, macros, circular references). It does not mention what `limit` max 400 does on truncation or error conditions, but the added behavioral semantics are well above the annotation baseline.

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?

One ~350-word paragraph of densely nested em-dash clauses and metaphor ('the model it is, whatever it models', 'the wiring the model rebuilds'), which makes the operative guidance hard to extract. The detail partly earns its place because there is no output schema, but the phrasing is baroque and not front-loaded.

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?

With no output schema and seven parameters, the description carries the return-shape burden and does so thoroughly: overview fields, fidelity issues, per-sheet typing, heading hierarchy, DSL expressibility of called functions, and the values option. Gaps remain around relation to sibling tools and pagination/error behavior, but an agent could call this correctly from the definition.

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 baseline is 3, and the description goes beyond it by explaining the interaction between `sheet`, `sheets`, and omission, why `values` is rarely needed, and that pagination is ignored for `sheets`. `attachment` and `model` semantics are left to the schema, but the mode-switching parameters are meaningfully enriched.

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 does convey the specific resource and two modes: without `sheet` it returns an overview 'plan' (axis, sheet classifications, fidelity issues), and with `sheet` it returns that sheet's ordered rows with input/calculated/mixed/constant/check typing. The opening line ('An attached workbook as the model it is, whatever it models') is abstract throat-clearing, and it never distinguishes itself from the sibling model_structure, so it is clear but not crisply differentiated.

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 real routing guidance: omit `sheet` for the overview, pass `sheet` for one sheet, pass `sheets` to read several whole in one call ('the ordinary way to read a workbook'), and pass `values: true` only rarely because workbook_fill writes cached values without retyping. It stops short of stating when to prefer model_structure or what to do on failure, but the when-to-use guidance is concrete.

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