Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_diff

Read-onlyIdempotent

Compare two Excel workbooks deterministically to surface cell-level changes, formula edits, and added or removed rows.

Instructions

Use this when you need to compute a deterministic semantic diff between two workbooks — cell-level deltas, formula changes, added/removed rows.

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_a": "<file_path_a>",
      "file_path_b": "<file_path_b>"
    },
    "name": "xlsx_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetNoLimit diff to one sheet (default: all).
file_path_aYesAbsolute path to the base .xlsx file. Pass the path string AS-IS — do NOT base64-encode the file; the client reads it.
file_path_bYesAbsolute path to the changed .xlsx file. Pass the path string AS-IS — do NOT base64-encode the file; the client reads it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv4.3.1
    • removedInput schema / properties / file_a_b64
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / file_b_b64
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / file_path_a
      Added value: +{
      +  "description": "Absolute path to the base .xlsx file. Pass the path string AS-IS — do NOT base64-encode the file; the client reads it.",
      +  "type": "string"
      +}
    • addedInput schema / properties / file_path_b
      Added value: +{
      +  "description": "Absolute path to the changed .xlsx file. Pass the path string AS-IS — do NOT base64-encode the file; the client reads it.",
      +  "type": "string"
      +}
    • removedInput schema / properties / options
      Removed value: -{
      -  "properties": {
      -    "sheet": {
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / sheet
      Added value: +{
      +  "description": "Limit diff to one sheet (default: all).",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "file_a_b64",
      -  "file_b_b64"
      -]New value: +[
      +  "file_path_a",
      +  "file_path_b"
      +]
  2. First observedv3.2.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds real value beyond that by promising a 'deterministic' diff and naming the output categories, but says nothing about output format or behavior on mismatched/large workbooks.

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 with the trigger condition first and the payoff (what the diff contains) second. No filler or 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?

For a three-parameter, read-only comparison tool with no output schema, the description supplies the essential trigger and the content of the result, and annotations carry the safety profile. Minor gap: it does not describe the shape of the returned diff or edge cases such as differing sheet sets.

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 description coverage is 100% and the schema already explains the base/changed paths, the AS-IS path instruction, and the sheet limit. The description only refers generically to 'two workbooks' and adds no syntax or semantics beyond the schema, so 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?

States a specific verb and resource — 'compute a deterministic semantic diff between two workbooks' — and enumerates the diff categories (cell-level deltas, formula changes, added/removed rows). It is distinguishable from siblings like xlsx_check or xlsx_describe by being explicitly comparative, though it never names an alternative to contrast with.

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?

'Use this when you need to...' gives a clear triggering condition, which is exactly the context an agent needs. It stops short of stating when NOT to use it or which sibling to pick instead (e.g., xlsx_check for validation rather than comparison).

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