Skip to main content
Glama
excel-master-pro

excel-master-pro

clean_spreadsheet

DestructiveIdempotent

Repair data quality errors in a spreadsheet by applying safe cleaning rules and save the cleaned file to a specified output path. Optionally target rules like deduplication or trimming.

Instructions

Repair data quality errors in a spreadsheet and save the cleaned file to output_path.

Overwrites any existing file at `output_path`. Optional `rules` can filter specific
operations or categories (e.g. ["drop_duplicates", "trim"]). When omitted, safe and
high-confidence repairs are applied automatically.

Args:
    file_path: Path to the source spreadsheet to clean.
    output_path: Destination path where the cleaned file will be written (overwrites if exists).
    rules: Optional list of specific cleaning rule identifiers to apply; defaults to all safe rules.

Returns:
    JSON string with before/after quality score delta, row counts, output path, and operation log.

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

Input Schema

NameRequiredDescriptionDefault
rulesNo
file_pathYes
output_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds real context beyond them: it names exactly what is destroyed (any existing file at `output_path`) and clarifies that the default path applies only "safe and high-confidence repairs." It also previews the return payload, which the annotations do not cover. It does not address failure/partial-failure behavior or permissions, so not a 5.

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?

Well front-loaded: the core action and the destructive write target come first, then structured Args/Returns. The overwrite behavior is stated twice (in the opening paragraph and again in the Args entry), which is mild redundancy rather than a real problem.

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 destructive mutation tool, the definition covers the action, the destructive side effect, the default rule policy, and the return shape. The Returns section is largely redundant since an output schema exists, and error/partial-failure semantics are absent, but nothing critical to invoking it correctly is missing.

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

Parameters4/5

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

Schema description coverage is 0%, so the description carries the full burden and does so with an Args block covering all three parameters, including the non-obvious overwrite semantics of `output_path` and example rule identifiers like "drop_duplicates" and "trim". It falls short of a 5 because it never enumerates the valid rule identifiers or states accepted source file formats.

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+resource pair: "Repair data quality errors in a spreadsheet and save the cleaned file to output_path." That distinguishes it from inspect_spreadsheet (read), merge_spreadsheets (combine), and generate_bi_report (report), but it never names or explicitly contrasts those siblings, 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?

Usage is implied by the purpose (use it to clean a file), and the description explains the default behavior when `rules` is omitted, which is genuinely helpful selection guidance for the parameter. However, there is no explicit when-to-use/when-not-to-use statement or routing to an alternative tool.

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