Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_healer_diagnose

Read-onlyIdempotent

Diagnose repairable damage in an .xlsx workbook and return a structured report of broken external references and Google Sheets export issues, keyed to recommended cure operations.

Instructions

Use this when you need to produce a structured report of repairable damage in a workbook, keyed to the cure operations. Two families: (1) broken or at-risk external references — moved, deleted, or permission-denied sources and #REF! chains; (2) Google-Sheets-to-Excel export damage — Sheets-only functions such as QUERY, ARRAYFORMULA, IMPORTRANGE, or GOOGLEFINANCE that Excel cannot evaluate and that arrive as dead formula text or a #NAME? error (surfaced as an unverified value to double-check), an oversized used-range, and repeated formulas left un-compacted. Every finding is reported, not altered in place.

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_healer_diagnose"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute path to the .xlsx file to diagnose.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv4.3.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / file_b64
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / file_path
      Added value: +{
      +  "description": "Absolute path to the .xlsx file to diagnose.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "file_b64"
      -]New value: +[
      +  "file_path"
      +]
  2. First observedv3.2.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true, so the safety profile is covered; the description's added value is substantive — it names the exact damage classes detected, explains that #NAME? results surface as an unverified value to double-check, and states findings are keyed to cure operations. It does not describe the report's field structure or whether findings are paginated/counted, which matters since 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.

Conciseness4/5

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

Two sentences, front-loaded with the triggering condition and then the damage taxonomy. The second sentence is long and packs several detection categories, but each item is informative scope rather than filler; a bulleted enumeration would scan marginally faster.

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 diagnostic with full annotation coverage and no output schema, the description supplies the detection scope, the non-mutating guarantee, and the linkage to cure operations. The main residual gap is the shape of the returned report, which the agent must discover by calling.

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?

Single parameter with 100% schema description coverage, so the schema fully documents file_path (absolute path to the .xlsx). The description adds no further constraint on the path — no note on whether the file must be closed, readable, or locally resolvable — so it does not exceed the baseline.

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?

States a specific verb and resource — produce a structured report of repairable damage in a workbook — and immediately scopes what counts as damage via two enumerated families (external references and Sheets-to-Excel export damage). The clause 'Every finding is reported, not altered in place' plus 'keyed to the cure operations' separates it from the cure sibling without ambiguity.

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?

Opens with an explicit trigger ('Use this when you need to produce a structured report of repairable damage'), which is clear context for invocation. It signals the diagnostic-vs-repair split through 'not altered in place', but never names xlsx_healer_cure or xlsx_healer_simulate as the alternative to reach for when the agent actually wants to fix something.

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