Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_pii_clean

Destructive

Redacts personal and sensitive data from Excel spreadsheets; preview changes with simulation or apply redaction in place or to a copy.

Instructions

Use this when you need to redact personal or sensitive data from a spreadsheet.

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_b64": "<file_b64>"
    },
    "name": "xlsx_pii_clean"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoThe spreadsheet file, handed off by a host that fills in the OpenAI file-parameter convention (openai/fileParams) from an uploaded or attached file. The server downloads download_url once, server-side; never a local sandbox path.
modeNo
file_b64Yes
simulateNo
selectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.3.1

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered structurally. The description adds nothing beyond that: it does not mention that redaction can be done in place versus as a copy, that a simulate mode exists, or whether the original file is recoverable.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The single sentence is front-loaded and free of padding beyond the filler "Use this when you need to." It is short but under-specified rather than efficiently concise, so the brevity does not earn a higher score.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a destructive, five-parameter mutation tool with nested objects, an enum mode, and no output schema, yet the definition is one sentence. An agent cannot tell from the description whether selection defaults to all data, what simulate does, or what a successful result looks like.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 20% across five parameters, including a mode enum (as_copy/in_place), a simulate flag, and a nested selection object with finding_ids and type_keys. The description explains none of these, so it fails to compensate for the coverage gap in a tool where choosing in-place versus copy is consequential.

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 (redact) and a concrete target (personal or sensitive data in a spreadsheet), so the agent knows what the tool accomplishes. It does not differentiate from siblings such as xlsx_pii_scan or xlsx_data_clean, so it stops short of a 5.

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 to redact..." gives a trigger condition, which is implied usage guidance. However, it never says when not to use it, nor does it point to xlsx_pii_scan for detection-only or xlsx_pii_job_status for progress, so the agent must infer the workflow.

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