Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_formulas

Read-onlyIdempotent

Extract all formulas, their cell coordinates, formula text, and cached results from an Excel workbook to support auditing or bulk transformation.

Instructions

Use this when you need to extract every formula in a workbook — cell coordinate, formula text, cached result — for auditing or bulk transformation.

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": {
      "file_path": "<file_path>"
    },
    "name": "xlsx_formulas"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax formulas to return (default 1000, max 5000).
sheetNoFilter to one sheet (default: all sheets).
file_pathYesAbsolute path to the .xlsx file. Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O. The base64 surface in this connector is OUTPUT-only (_meta.file_b64).
include_resultsNoInclude cached results column (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv4.3.1
    • removedInput schema / properties / file_b64
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / file_path
      Added value: +{
      +  "description": "Absolute path to the .xlsx file. Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O. The base64 surface in this connector is OUTPUT-only (_meta.file_b64).",
      +  "type": "string"
      +}
    • addedInput schema / properties / include_results
      Added value: +{
      +  "description": "Include cached results column (default true).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 1000,
      +  "description": "Max formulas to return (default 1000, max 5000).",
      +  "maximum": 5000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedInput schema / properties / options
      Removed value: -{
      -  "properties": {
      -    "include_results": {
      -      "type": "boolean"
      -    },
      -    "limit": {
      -      "maximum": 5000,
      -      "minimum": 1,
      -      "type": "integer"
      -    },
      -    "sheet": {
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / sheet
      Added value: +{
      +  "description": "Filter to one sheet (default: all sheets).",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "file_b64"
      -]New value: +[
      +  "file_path"
      +]
  2. First observedv3.2.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered without the prose. The description's real contribution is the returned-field list, which matters because no output schema exists. It says nothing about truncation, ordering, or what happens with formulas lacking cached results.

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

Conciseness5/5

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

One sentence, front-loaded with the trigger condition and followed immediately by the output contract and use cases. Every clause earns its place with no restatement of the title or annotations.

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?

Because there is no output schema, enumerating the three returned fields is genuinely necessary and is done well. However, the description promises 'every formula' while the schema defaults to a 1000-formula cap (max 5000), and that truncation risk — central to an auditing use case — is never surfaced in the prose.

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% and the schema itself is unusually informative, including the explicit instruction to pass file_path as-is and the base64 note. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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 names a specific verb and resource ('extract every formula in a workbook') and enumerates exactly what is returned (cell coordinate, formula text, cached result). It does not name a distinguishing sibling such as xlsx_eval or xlsx_describe, so an agent must infer the boundary from the enumerated output rather than from explicit routing.

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 a clear trigger condition — 'Use this when you need to extract every formula' — and two motivating scenarios, auditing and bulk transformation. It stops short of stating when not to use it or which sibling to prefer for related tasks like evaluation or workbook description.

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