Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_healer_intent

Destructive

Heal .xlsx workbooks by declaring a goal—make-it-work, make-standalone, or migrate—so the tool plans and applies the needed repair operations.

Instructions

Use this when you need goal-driven healing: declare an intent (make-it-work / make-standalone / migrate) and let the healer plan + apply the operation sequence.

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>",
      "intent": "<intent>"
    },
    "name": "xlsx_healer_intent"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoas_copy (default) writes a new file alongside the source; in_place overwrites it.
intentYesThe healing goal. make-it-work: smallest surgery to clear errors. make-standalone: fully dereference all externals. migrate: rewrite against a from/to prefix pair (requires intent_params.from + intent_params.to).
confirmNoRequired as true when mode=in_place. Prevents accidental in-place overwrites; explicit confirmation is the safety gate.
out_pathNoOptional: write the cured workbook to this absolute path. Defaults to <name>-healed.xlsx next to the source when mode=as_copy.
file_pathYesAbsolute path to the .xlsx file to heal.
intent_paramsNoIntent-specific parameters. Required keys depend on the intent (migrate needs from + to).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv4.3.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / confirm / description
      Added value: +"Required as true when mode=in_place. Prevents accidental in-place overwrites; explicit confirmation is the safety gate."
    • removedInput schema / properties / file_b64
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / file_path
      Added value: +{
      +  "description": "Absolute path to the .xlsx file to heal.",
      +  "type": "string"
      +}
    • addedInput schema / properties / intent / description
      Added value: +"The healing goal. make-it-work: smallest surgery to clear errors. make-standalone: fully dereference all externals. migrate: rewrite against a from/to prefix pair (requires intent_params.from + intent_params.to)."
    • addedInput schema / properties / intent / enum
      Added value: +[
      +  "make-it-work",
      +  "make-standalone",
      +  "migrate"
      +]
    • removedInput schema / properties / intent_params / additionalProperties
      Removed value: -false
    • addedInput schema / properties / intent_params / description
      Added value: +"Intent-specific parameters. Required keys depend on the intent (migrate needs from + to)."
    • addedInput schema / properties / intent_params / properties / from / description
      Added value: +"Source path prefix (required for migrate intent)."
    • addedInput schema / properties / intent_params / properties / to / description
      Added value: +"Target path prefix (required for migrate intent)."
    • addedInput schema / properties / mode / description
      Added value: +"as_copy (default) writes a new file alongside the source; in_place overwrites it."
    • removedInput schema / properties / operation
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / out_path
      Added value: +{
      +  "description": "Optional: write the cured workbook to this absolute path. Defaults to <name>-healed.xlsx next to the source when mode=as_copy.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "file_b64",
      -  "intent"
      -]New value: +[
      +  "file_path",
      +  "intent"
      +]
  2. First observedv3.2.1

TDQS

A3.5/5.0
Behavior3/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. The description adds that the tool plans and then applies a multi-step operation sequence, which is meaningful behavioral context beyond the annotations. It does not disclose what gets overwritten, how the plan is surfaced, or how failures mid-sequence are handled.

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 with no filler: the trigger condition comes first, then the core mechanism. Nothing is redundant or padded.

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?

This is a 6-parameter, destructive, nested-object tool with no output schema, and the description never says what is being healed (external references) or what the plan/apply result looks like. The rich 100% schema and the safety annotations compensate for much of the gap, but the description on its own is thin for a mutation tool of this complexity.

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 intent, mode, confirm, out_path, and intent_params in detail. The description only restates the three intent enum values, adding no syntax or format detail beyond the schema. Baseline 3 applies when the schema carries the parameter burden.

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 (heal) and resource (xlsx workbook) and describes the intent-driven plan-and-apply model, so the agent knows what the tool does. It does not, however, distinguish this from the sibling xlsx_healer_cure, so the agent cannot tell which healer entry point to pick from the description alone.

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 goal-driven healing" gives a loose trigger condition, but there is no explicit when-not guidance and no named alternative (cure, diagnose, simulate) to contrast against. The intent enum values are restated, which implies different modes, but the choice between this tool and its healer siblings is left to inference.

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