Skip to main content
Glama
senoff

xlsx-for-ai

xlsx_filter

Read-onlyIdempotent

Filter rows in a local .xlsx file using AND-combined predicates (eq, contains, gt, etc.). Server-side formula evaluation returns accurate matching rows as a markdown table.

Instructions

pandas-style row filter on a LOCAL .xlsx file with predicates AND-combined: eq/ne/gt/gte/lt/lte/contains/in/is_null/not_null. Operates on real cell values — formulas evaluated server-side, not the cached results that pandas trusts blindly.

USE WHEN: the user asks for "rows where X" / "show me only Y" against a LOCAL .xlsx file. Returns matching rows as a markdown table, capped at 1000 rows by default with the actual match count.

DO NOT USE WHEN: the user wants raw access to all rows (use xlsx_read). Or when the file came from an upload.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_b64Yes
optionsNo
predicatesYes
Behavior5/5

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

Beyond annotations (readOnly, idempotent, etc.), the description adds critical behavioral details: formulas are evaluated server-side (not cached results), returns markdown table capped at 1000 rows with actual match count. No contradiction 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.

Conciseness5/5

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

The description is concise and well-structured: it opens with the core purpose, followed by behavioral context, then clear usage guidelines. Every sentence adds value without redundancy.

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's complexity (nested objects, no output schema), the description covers purpose, usage, behavioral traits, and key parameter aspects. It could further detail the output format or options like header_row, but overall it is sufficiently complete.

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?

With 0% schema coverage, the description compensates by explaining that predicates are AND-combined and listing supported operators. However, it does not describe other parameters like file_b64, header_row, or sheet, leaving some reliance on the schema.

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 it performs a 'pandas-style row filter' on a local .xlsx file with AND-combined predicates, and explicitly distinguishes it from xlsx_read for raw access. The verb 'filter' and resource 'LOCAL .xlsx file' are specific.

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?

The description includes explicit 'USE WHEN' and 'DO NOT USE WHEN' sections, directing agents to use this tool when the user requests filtered rows and to avoid it for raw access (use xlsx_read) or for uploaded files.

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