Skip to main content
Glama

Sanitize copy

sanitize_copy

Create a cleaned copy of an Excel workbook for sharing by stripping comments, document properties, change logs, hidden sheets, external links, or macros while keeping the source unchanged.

Instructions

Write a cleaned copy of the workbook for sharing (run inspect_for_sharing first). The source is not modified.

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": {
      "output_path": "<output_path>"
    },
    "name": "sanitize_copy"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFile path or preloaded name (list_configured_files). Omit if only one file is preloaded.
removeNoWhat to strip. Default: comments, document_properties, change_log. Hidden sheets are removed only when nothing refers to them; external links become their cached values.
overwriteNoReplace an existing output file.
output_pathYesPath for the cleaned copy; must differ from the source.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

Annotations supply only openWorldHint=false, so the description carries most of the behavioral burden. 'The source is not modified' is a meaningful non-destructive guarantee that the annotations do not convey, and the write-a-copy framing clarifies the mutation target. It does not discuss permissions or how the default strip set interacts with the source.

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?

Two short sentences with no filler, and the core action plus the prerequisite are front-loaded. Every clause earns its place.

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?

An output schema exists, so return values need no explanation, and the description supplies the key prerequisite and the source-safety guarantee. For a write tool with a mandatory prerequisite step, it is nearly complete, though it omits what happens when the prerequisite is skipped.

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%, so the schema already documents path, remove, overwrite, and output_path in detail. The description adds no parameter-level meaning beyond what the schema provides, so the baseline of 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?

The description names a specific verb and resource ('Write a cleaned copy of the workbook') and states the purpose ('for sharing'), which distinguishes it from the sibling copy_sheet and export_review_copy. It does not explicitly name those siblings, so the differentiation is inferential rather than stated.

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?

The parenthetical '(run inspect_for_sharing first)' gives an explicit prerequisite and ordering, which is exactly the kind of guidance an agent needs. It stops short of saying when to choose this over copy_sheet or export_review_copy, so the alternative-selection guidance is incomplete.

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