Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_check

Read-onlyIdempotent

Validate an Excel workbook's structure, error cells, stale cached formula values, data ranges that miss contiguous rows, and hygiene issues before trusting its numbers.

Instructions

Use this when you need to know if the numbers are right: workbook structural validity, error cells, stale cached values (formulas recomputed by the server's own engine and compared with the stored values; cells the engine does not model are skipped), ranges that stop short of contiguous data, and hygiene findings.

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_b64": "<file_b64>"
    },
    "name": "xlsx_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoThe spreadsheet file, handed off by a host that fills in the OpenAI file-parameter convention (openai/fileParams) from an uploaded or attached file. The server downloads download_url once, server-side; never a local sandbox path.
file_b64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.3.1

TDQS

B3.4/5.0
Behavior4/5

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

The readOnly/destructive/idempotent annotations already cover the safety profile, so the description earns credit for going beyond them: it discloses that stale values are detected by recomputing with the server's own engine and comparing against stored values, and that cells the engine does not model are skipped. That caveat is exactly the kind of accuracy limitation an agent needs before trusting a finding. It does not describe the shape of the report returned, which is a remaining gap.

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?

It is one front-loaded sentence that opens with the use trigger before enumerating what is checked. The parenthetical on the comparison engine is dense but it carries real information. Minor cost: a long comma-list that will need re-reading, but nothing is padding.

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?

With no output schema, the description has to carry the burden of what comes back, and it only lists finding categories rather than the response form or severity semantics. Input handling, notably the required base64 payload versus the optional file object, is left entirely to the schema. Adequate for a read-only diagnostic, but an agent still has to guess at the result shape.

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 says nothing about inputs at all: no mention of the file handoff, the download URL, or the required file_b64 payload. Schema coverage is only 50%, and the required file_b64 string has no description anywhere, so the gap is not absorbed by structured metadata. This is the weakest dimension.

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 the concrete diagnostics this tool returns: structural validity, error cells, stale cached values, short ranges, and hygiene findings. That is far more specific than the name 'xlsx_check' alone, and the lead phrase 'if the numbers are right' frames the intent. It stops short of distinguishing itself from near-neighbors such as xlsx_doctor or xlsx_formulas, so it is clear but not sibling-differentiating.

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

Usage Guidelines3/5

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

'Use this when you need to know if the numbers are right' gives a genuine trigger condition for calling the tool. However, there is no when-not guidance, no mention of when xlsx_doctor or xlsx_formulas would be the better choice, and no note about whether a repair tool should follow a check.

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