Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_doctor

Read-onlyIdempotent

Audit an Excel workbook before sharing to get a one-call health report on macros, external references, hidden sheets, missing metadata, oversized images, and ranked HIGH/MEDIUM/LOW risks.

Instructions

Use this when you need to know the risks before sharing a workbook: a one-call health report covering macros, external refs, hidden sheets, missing metadata, oversized images, ranked HIGH/MEDIUM/LOW 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_path": "<file_path>"
    },
    "name": "xlsx_doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute path to the .xlsx / .xlsm file. Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O.

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 / .xlsm file. Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "file_b64"
      -]New value: +[
      +  "file_path"
      +]
  2. First observedv3.2.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds useful behavior beyond that: the severity ranking scheme (HIGH/MEDIUM/LOW) and the breadth of checks, which signals a heavier fan-out read than a single-feature tool. It says nothing about cost/latency or how the findings are returned, which matters given there is no output schema.

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?

A single, front-loaded sentence that leads with the use case and then lists what the report covers. Every clause carries information; nothing is redundant filler.

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 read-only single-argument audit with no output schema and full annotation coverage, the description is nearly sufficient: it tells the agent what is checked and how findings are ranked. The remaining gap is the shape of the returned report (per-finding structure, counts), which an agent would have to discover by calling it.

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?

One required parameter with 100% schema description coverage, and the schema itself carries the important instruction about passing the path as-is without reading or base64-encoding. The description adds no parameter meaning at all, which is acceptable at full coverage but leaves it at baseline.

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 deliverable (a one-call health report / risk audit) and enumerates the specific findings it looks for: macros, external refs, hidden sheets, missing metadata, oversized images. The 'one-call' framing implicitly separates it from granular siblings like xlsx_macros or xlsx_external_links, though no sibling is named explicitly.

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

Usage Guidelines4/5

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

It gives a clear selection trigger: 'Use this when you need to know the risks before sharing a workbook.' That is a real contextual condition rather than a restatement of the tool name. It stops short of stating when NOT to use it or naming the per-feature alternatives an agent might pick instead.

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