Skip to main content
Glama

calculators

run_calculator

Run a calculator with the given inputs. Inputs are validated against the resolved version's reviewed contract and computed by SpreadsheetWeb through the same proxy as the web channel. An optional platform_version pins both validation and computation to that immutable version. Returns outputs keyed by named range (including the status output) and trust metadata with a citation URL, resolvedInputs, and warnings for omitted inputs. Missing or blank visible required inputs are refused before computation; inspect get_calculator_schema and the complete error detail. For schema 0.18, optional omissions are sent explicitly as declared blank or standing default and disclosed with their values and sources. Older pinned contracts require all inputs during migration. Visibility follows version-bound dropdown truth tables; a missing controller makes its dependents indeterminate until it is supplied. A hidden controller is ignored only when all of its option branches have the same remaining visibility subtree; otherwise its dependents stay hidden. Hidden omissions use explicit blank/default values; supplied hidden inputs are retained with a not-applicable warning. Always read Model_Status and status outputs; CHECK and STOP are load-bearing verdicts about the result's validity. Results are informational and not professional advice; the applicable notice is returned in the trust block.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesThe calculator slug.
inputsYesInput name/value pairs matching the calculator schema (from get_calculator_schema). A table input takes a list of rows matching its 'grid' block exactly; a table of the wrong extent or shape is refused rather than partially applied.
platform_versionNoOptional positive platform version number. Omit for the current published version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so richly: refusal of missing/blank required inputs, explicit blank/default handling for omissions, visibility truth-table and hidden-controller rules, retention of supplied hidden inputs with a not-applicable warning, and trust metadata with citation URL. It also flags that Model_Status/CHECK/STOP are load-bearing verdicts, which is essential behavioral context an agent could not infer.

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

Conciseness3/5

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

Front-loaded with purpose and return shape, but the body is a dense wall of edge-case prose (truth tables, hidden controllers, migration behavior) that is hard to scan. The critical 'read Model_Status' guidance is buried mid-paragraph rather than surfaced.

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?

No output schema exists, so the description must cover returns — and it does, specifying outputs keyed by named range, the status output, and a trust block with citation URL, resolvedInputs, and warnings. For a complex nested-input tool this is complete enough to invoke correctly.

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 baseline is 3, but the description adds real meaning: platform_version 'pins both validation and computation to that immutable version', and inputs must match the schema returned by get_calculator_schema, including exact table grid extents. This goes beyond the schema's own field 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?

Opens with a specific verb+resource ('Run a calculator with the given inputs') and distinguishes itself from siblings by directing the agent to get_calculator_schema for input discovery. An agent can tell this is the execution tool versus the schema/search tools.

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: inspect get_calculator_schema first, platform_version pins an immutable version, missing required inputs are refused. It stops short of explicitly naming when NOT to use it or contrasting with siblings beyond the schema-lookup pointer, but the operational context is 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.

Resources