Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_validate

Read-onlyIdempotent

Checks whether an Excel workbook opens cleanly and reports each sheet's row and column extent, helping verify file soundness before processing.

Instructions

Use this when you need a soundness check — load the workbook with the server's own engine and report whether it opens cleanly, with a per-sheet row and column extent.

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_path": "<file_path>"
    },
    "name": "xlsx_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute path to the .xlsx file. Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O. The base64 surface in this connector is OUTPUT-only (_meta.file_b64).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv4.3.1
    • removedInput schema / properties / file_b64
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / file_path
      Added value: +{
      +  "description": "Absolute path to the .xlsx file. Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O. The base64 surface in this connector is OUTPUT-only (_meta.file_b64).",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "file_b64"
      -]New value: +[
      +  "file_path"
      +]
  2. First observedv3.2.1

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, closed-world, and non-destructive, so the safety profile is covered. The description still adds real value beyond them by disclosing the mechanism (the server's own engine loads the file) and the result shape (clean open plus per-sheet extents), which is the missing output-schema information. It stops short of saying what a failure looks like or how corrupt files are reported.

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?

A single front-loaded sentence with the trigger condition first and the result shape second; no filler. It is slightly compressed — the em-dash clause packs mechanism and output together — but nothing is wasted.

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?

For a one-parameter, read-only, annotation-covered tool with no output schema, the description supplies the essential missing piece: what is reported back. Only the failure/error semantics are left unstated, which is a minor gap at this complexity level.

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 100% and the parameter description is unusually rich, including the AS-IS / no-base64 warning and the note that base64 output lives in _meta.file_b64. The tool description itself adds nothing about file_path, so the schema carries the load and the baseline 3 applies.

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 a concrete action (load the workbook with the server's own engine) and a concrete outcome (whether it opens cleanly, plus per-sheet row/column extent), which is far more specific than a bare 'validate'. It does not, however, distinguish itself from look-alike siblings such as xlsx_check, xlsx_doctor, or xlsx_describe, so an agent must guess which of these diagnostics to reach for.

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 a soundness check' implies a usage context but gives no exclusions or alternatives, which matters in a catalog containing xlsx_check, xlsx_doctor, and xlsx_describe. The guidance is sufficient to know the general situation but not to route between competing tools.

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