Skip to main content
Glama

Convert spreadsheet

convert_spreadsheet
Read-onlyIdempotent

Compile an uploaded .xlsx workbook's OWN formulas into a ready ModelSpec — deterministic transpilation (Excel formula language -> JSONata), never an LLM call: every number the compiled spec computes is checked to exactly match what the source workbook itself computed. One worksheet, one header-row table, a bounded numeric/boolean function set (IF/AND/OR/NOT/ROUND/ABS/SUM/AVERAGE/MIN/MAX/COUNT) — anything else (VLOOKUP, cross-sheet refs, non-uniform per-row formulas, …) is named and reported in rejectedColumns rather than guessed; the rest of the sheet still compiles. The returned spec is NOT yet registered — review it, then call create_model yourself.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesThe .xlsx file content, base64-encoded.
modelIdYesThe desired model id for the compiled spec.
filenameYesOriginal filename, e.g. 'pricing.xlsx'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
specNoThe compiled ModelSpec (only present when valid).
validNoTrue if at least one column compiled.
rejectedColumnsNoColumns that could not be translated: {header, reason, detail}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description adds substantial behavioral detail beyond them: no LLM involvement, exact value verification against the source workbook, partial-failure semantics (unsupported formulas are named in rejectedColumns while the rest still compiles), and the unregistered output state.

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

Conciseness4/5

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

Front-loaded with the core action and the determinism guarantee, then constraints, then the next-step instruction. It is dense and slightly long, but nearly every clause conveys a constraint or a routing decision rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With annotations covering safety and an output schema covering return values, the description supplies exactly what structured fields cannot: determinism, supported function set, rejection behavior, and the requirement to register via create_model. Nothing needed to invoke it correctly is missing.

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 the three parameters (data, filename, modelId) are already fully documented in the schema. The description adds only contextual color about the file being an .xlsx workbook and does not supplement param syntax or constraints. Baseline 3 applies.

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?

States a specific verb (compile/transpile) on a specific resource (an uploaded .xlsx workbook's own formulas) into a named artifact (a ModelSpec). It is clearly distinguishable from siblings like eval_expression or create_model, which it explicitly defers to.

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?

Gives clear context (deterministic transpilation, never an LLM call) and an explicit next step: the spec is not registered, so the agent must call create_model itself. It also scopes applicability (one worksheet, one header-row table, bounded function set). It stops short of stating when to prefer this over other spec-producing paths, but the routing is otherwise strong.

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.