Skip to main content
Glama
senoff

xlsx-for-ai

xlsx_read

Read-onlyIdempotent

Read an Excel file by server path and convert it to markdown, JSON, or SQL. Returns all sheets by default; optionally filter by sheet name.

Instructions

xfa — read an .xlsx file by path and return a rendered markdown/JSON/SQL representation.

The path resolves on the SERVER's filesystem. In a LOCAL-CLI deployment (npx xlsx-for-ai-mcp) the server IS the user's machine, so /Users/..., /home/..., or ~-prefixed paths work directly. In a remote/hosted deployment the server runs on a different host — ingest user-provided files via the upload-handle flow first, then use xlsx_read_handle.

DEFAULT returns ALL sheets — do not re-call per-sheet. Pass sheet="" only to filter. format="md" (markdown table, default), "json", or "sql". Synonyms: "markdown"→"md", "text"→"md".

USE WHEN: the user gives a path the SERVER can reach (LOCAL CLI absolute or ~-prefixed; remote: a path on the hosted machine).

DO NOT USE WHEN: a paperclip/attach upload in a different agent (use that agent's built-in xlsx skill). Or user-provided files on a remote/hosted deployment (use xlsx_read_handle). Or in-memory bytes the agent already has.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_b64Yes
optionsNo
Behavior5/5

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

Annotations already indicate readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds critical context: path resolution differences between local and remote deployments, default returns all sheets, format synonyms, and the fact that the server's filesystem is used. 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 clear sections and front-loaded key information. However, it is slightly verbose due to detailed path explanations and synonyms. Every sentence adds value, but some redundancy could be trimmed.

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

Completeness2/5

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

Given the required 'file_b64' parameter and no output schema, the description is incomplete. It addresses path-based reading but ignores the file_b64 parameter entirely, creating a significant gap. The tool's behavior regarding base64 input is undocumented, which hinders correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description fails to explain the required 'file_b64' parameter (a base64 string) despite focusing on path-based reading. While it partially explains the 'options' sub-parameters (format, sheet), it omits 'maxRows'. With 0% schema description coverage, the description should compensate but does not adequately cover all parameters.

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 reads .xlsx files and returns a markdown/JSON/SQL representation. It effectively distinguishes itself from siblings like xlsx_read_handle by specifying different use cases (path-based vs. handle-based).

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?

Explicitly provides when-to-use (path on server's filesystem) and when-not-to-use (paperclip upload, remote user files, in-memory bytes). Also notes default behavior of returning all sheets, preventing redundant calls.

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