Skip to main content
Glama

formulas

Read-onlyIdempotent

Audit Excel calculation errors, trace cell precedents and dependents, and evaluate expressions with a built-in evaluator—no Excel required.

Instructions

Formula intelligence for xlsx: audit errors, trace dependencies, and compute formulas with the built-in evaluator (~100 Excel functions incl. SUMIFS, XLOOKUP, INDEX/MATCH) — no Excel needed, works on Linux/macOS/Windows.

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": {
      "path": "<path>"
    },
    "name": "formulas"
  }
}

Input Schema

NameRequiredDescriptionDefault
cellNoCell or range for trace/evaluate, e.g. 'D10' or 'Summary!B2'.
pathYesFile path, relative to the root folder (or absolute inside it).
depthNoTrace depth (1-10).
limitNoMax rows to return (default from server config, usually 100).
sheetNoSheet name (or 0-based index). Default: first sheet.
actionNolist all formulas | errors: find #REF!/#DIV/0!/#N/A/circular | trace a cell's precedents & dependents | evaluate a cell/range or an ad-hoc formula | stats: functions usedlist
offsetNoPaging offset for list.
formulaNoAd-hoc formula to evaluate against the workbook, e.g. '=SUMIFS(C:C,A:A,"EU")'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the description rightly spends its words elsewhere: it discloses that evaluation is done by an internal engine and caps function support at roughly 100 Excel functions, which is a real limitation an agent needs (unsupported functions will not evaluate). It omits pagination and per-action return behavior, keeping it short of a 5.

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?

A single front-loaded sentence with the core capabilities first and the portability note trailing, with no filler. The parenthetical function list is slightly dense but earns its place by signaling evaluator coverage.

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

Completeness3/5

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

With eight parameters, five action modes, and no output schema, the description should say what each mode returns (error records, precedent/dependent trees, computed values, function tallies). It covers the evaluator well but leaves the shapes of 'trace', 'errors', and 'stats' results to inference.

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 every parameter including the action enum and formula/cell examples is already documented; baseline 3 applies. The description's only added parameter-adjacent value is naming supported function families (SUMIFS, XLOOKUP, INDEX/MATCH) that the evaluator handles.

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?

Names the resource (xlsx formulas) and three concrete capabilities: audit errors, trace dependencies, and compute formulas with a built-in evaluator. It is clearly distinguishable from generic readers like read_range or query, though it never mentions the 'list' and 'stats' actions that the schema enum exposes, so the stated purpose covers only part of the tool's surface.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The verbs 'audit errors', 'trace dependencies', 'compute' imply when each mode is useful, but there is no explicit when-to-use/when-not statement and no reference to a sibling such as read_range for plain value reads. Guidance is inferred rather than stated.

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