Skip to main content
Glama
senoff

xlsx-for-ai

xlsx_eval

Read-onlyIdempotent

Evaluate Excel formulas and cell references in a .xlsx file to retrieve live computed values, bypassing stale caches.

Instructions

evaluate Excel formulas against a LOCAL .xlsx file via HyperFormula. xlwings-style. Two modes: pass formulas (array of "=SUM(A1:A10)" expressions to compute against the workbook) or cells (array of "Sheet1!A1" cell refs to fresh-evaluate). Replaces pandas' "trust the cached value" behavior with a real eval — if the cache is stale or missing, this still produces the right answer.

USE WHEN: the user wants the live computed value of a formula, not the cached one. Or when a workbook has formulas that depend on external data the cache might be stale on. Engine omits INDIRECT/HYPERLINK/WEBSERVICE/RTD/DDE by design — no I/O risk.

DO NOT USE WHEN: the workbook has no formulas (use xlsx_read). Or for upload/attached files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cellsNo
file_b64Yes
formulasNo
optionsNo
Behavior5/5

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

Describes the evaluation engine (HyperFormula), replacement of cached values, and intentional omission of I/O-related functions. Annotations already indicate read-only and idempotent behavior; description adds context about local evaluation and limitations.

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?

Well-structured with a concise summary, followed by usage guidance. Every sentence adds value without redundancy. Information is front-loaded and easy to scan.

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?

The description covers the tool's purpose, usage context, and limitations well. However, with no output schema, it does not describe the return format or structure of the evaluated results, which could leave the agent unsure of what to expect.

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 0%, so description compensates partially by explaining the two modes (cells and formulas) and their purpose. However, the required file_b64 parameter is not described in detail (base64 format not mentioned), and options object only gets a brief mention. A more explicit description of each parameter's role and constraints would improve the score.

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?

Clearly states the tool evaluates Excel formulas against a local .xlsx file via HyperFormula. Distinguishes from sibling tools like xlsx_read (for no formulas) and describes two modes (formulas and cells).

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

Usage Guidelines5/5

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

Provides explicit USE WHEN and DO NOT USE WHEN sections, specifying conditions and alternatives. Mentions omission of risky functions like INDIRECT and HYPERLINK, guiding proper use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/senoff/xlsx-for-ai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server