Skip to main content
Glama
senoff

xlsx-for-ai

xlsx_styles

Read-onlyIdempotent

Recover cell formatting (number formats, fonts, fills) discarded by pandas, enabling LLMs to interpret date serials, currency, and percentages correctly.

Instructions

surface cell formatting (number formats, fonts, fills, alignment) so an agent knows what a cell LOOKS like, not just its raw value. Default mode: per-sheet rollup of top-N number formats / fonts / fills with counts. Detailed mode (opt-in, capped at 1000 cells): per-cell breakdown for narrow queries. No other tool can do this with this fidelity: pandas drops styles on read entirely. The single most valuable slice is number formats — pandas hands an LLM "45292" and the cell rendered as "2024-01-01" because format was "yyyy-mm-dd". xlsx_styles is what makes that recoverable.

USE WHEN: an LLM is about to interpret raw numbers (date serials, currency, percents, scientific notation) and you want the format hint that tells it what those numbers MEAN to a human. Or auditing a dashboard's typography. Or fingerprinting a template. Free tier — counts against the 10k/mo cap.

DO NOT USE WHEN: you only need the data (use xlsx_read which already includes basic numFmt hints in the output).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_b64Yes
optionsNo
Behavior5/5

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

Annotations declare readOnlyHint, idempotentHint, etc. The description adds significant behavioral detail: default mode is a per-sheet rollup with counts, detailed mode is opt-in and capped at 1000 cells. It explains the value of number formats for interpreting date serials and other formatted numbers. No contradictions with annotations.

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?

The description is well-structured with three paragraphs: purpose and modes, use cases, usage guidelines. It is front-loaded with the core purpose. Some sentences are redundant (e.g., restating the value of number formats), but overall efficient.

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?

Given the tool has 2 parameters (one nested), no output schema, and 0% schema coverage, the description covers the essential context: two modes, cap, use cases, and differentiation from siblings. It lacks explicit description of the return value format, but the mode descriptions provide enough for an agent to understand output shape.

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 description coverage is 0%, so the description must compensate. It explains the 'detailed' and 'limit' parameters by describing default vs detailed modes and the 1000-cell cap. However, it does not explicitly describe 'file_b64' or the 'options' structure, leaving some ambiguity. Overall, it adds meaningful semantics.

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?

The description clearly states the tool surfaces cell formatting (number formats, fonts, fills, alignment) to reveal how a cell looks, distinguishing it from raw values. It specifies that no other tool provides this fidelity and contrasts with xlsx_read, which only includes basic numFmt hints.

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?

Explicit 'USE WHEN' and 'DO NOT USE WHEN' sections provide clear guidance on when to use this tool (interpreting raw numbers, auditing dashboards, fingerprinting templates) and when to use alternatives (xlsx_read for data only). Also mentions the free tier cap.

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