Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_redact

DestructiveIdempotent

Redact PII and sensitive values from spreadsheets before sharing or archiving, preserving formulas, comments, and styles by default.

Instructions

Use this when you need to redact PII and sensitive values from a spreadsheet before sharing or archiving, preserving formulas/comments/styles by default.

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>",
      "out_path": "<out_path>"
    },
    "name": "xlsx_redact"
  }
}

Input Schema

NameRequiredDescriptionDefault
out_pathYesDestination for the redacted .xlsx file.
file_pathYesAbsolute path to the source .xlsx 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. Changed5 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 source .xlsx 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"
      +}
    • removedInput schema / properties / options
      Removed value: -{
      -  "properties": {
      -    "mode": {
      -      "enum": [
      -        "pii",
      -        "scaffold"
      -      ],
      -      "type": "string"
      -    },
      -    "strip_comments": {
      -      "type": "boolean"
      -    },
      -    "strip_formulas": {
      -      "type": "boolean"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / out_path
      Added value: +{
      +  "description": "Destination for the redacted .xlsx file.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "file_b64"
      -]New value: +[
      +  "file_path",
      +  "out_path"
      +]
  2. First observedv3.2.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is largely covered. The description's real contribution is 'preserving formulas/comments/styles by default,' which tells the agent what is not destroyed — valuable beyond the annotations. It leaves open whether the source file is altered (the required out_path suggests a new file, which sits awkwardly with destructiveHint) and what categories of data are detected or how redaction is represented.

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 opening with 'Use this when,' with every clause earning its place — trigger condition, action, and preservation default. Nothing is padded or repeated.

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?

For a destructive tool with no output schema, the description should say something about what the caller gets back (a redaction report, counts, location) and confirm whether the source file is untouched. The preservation clause helps, but the return side and source-safety question are left unaddressed.

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 itself carries the critical operational note (pass the path AS-IS, do not read or base64-encode; the client handles file I/O). The description adds no parameter-level meaning, so 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?

Names a specific verb (redact) and resource (spreadsheet) with a stated scope: PII and sensitive values, plus the preservation behavior for formulas/comments/styles. It does not distinguish itself from the PII-related siblings (xlsx_pii_scan, xlsx_pii_clean), so an agent must still infer the boundary between scanning, cleaning, and redacting.

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?

Gives a clear usage trigger — 'before sharing or archiving' — which is exactly the decision context an agent needs. It offers no exclusions or named alternatives (e.g., scan first with xlsx_pii_scan), so the guidance is contextual but not comparative.

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