Skip to main content
Glama
SheetForge MCP

SheetForge MCP

by iHeldan

apply_workbook_repairs

Destructive

Apply safe repairs to an Excel workbook, or preview the proposed fixes with dry_run before saving. Use it to clean up workbook issues while keeping the source intact until you confirm.

Instructions

Apply safe repairs or inspect an isolated proposed candidate with dry_run.

Preview diff_basis is dry_run_preview; audit_after_basis is unchanged_source.
Real repairs label both as saved_source.

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": {
      "filepath": "<filepath>"
    },
    "name": "apply_workbook_repairs"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
filepathYesReuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing.
header_rowNo
sheet_namesNo
repair_typesNo
sample_limitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.0
    • addedInput schema / properties / filepath / description
      Added value: +"Reuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing."
  2. First observedv0.8.0

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, and the description adds real value on top: it discloses that non-dry runs overwrite the original source (labels become saved_source) while dry runs leave the source untouched and only report diff_basis dry_run_preview. There is mild tension in calling the repairs 'safe' on a destructive tool, and no mention of backups or rollback, but this is far more behavioral detail than the annotation alone conveys.

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?

Three short sentences, front-loaded with the action, which is good. But terms like 'diff_basis' and 'audit_after_basis' are introduced without definition and read as internal field names rather than instructions, costing clarity for the sake of brevity.

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?

A six-parameter, destructive mutation tool with no output schema and near-zero schema coverage needs the description to explain repair_types options, return content of the preview diff, and what happens to the source on failure. None of that is present, so an agent could invoke it but not reliably predict or configure the outcome.

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 coverage is 17% — only filepath is documented in the schema. The description explains dry_run's effect only indirectly through labeling vocabulary, and says nothing about repair_types values, sheet_names scoping, sample_limit, or header_row. With five undocumented parameters, the description does not compensate for the coverage gap.

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 concrete verb and resource ('apply safe repairs') and distinguishes two operating modes: an isolated proposed candidate via dry_run versus a real repair. It never names plan_workbook_repairs or apply_workbook_changeset, so an agent must infer the boundary from context, but the core action is unambiguous.

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?

The dry_run flag is effectively presented as the when-to-use switch (inspect candidate vs. commit repairs), and the schema default of true reinforces preview-first. However there is no explicit guidance on when to choose this tool over planning or changeset alternatives, nor any stated prerequisite such as running plan_workbook_repairs first.

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

Deploy Server

Other Tools