Skip to main content
Glama

electron_healer_fix_test

Applies fixes to a test file by creating a backup and saving corrected code, using a supplied description of the fix.

Instructions

Apply fixes to a test file. Creates a backup and saves the corrected code.

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": {
      "testPath": "<testPath>",
      "fixedCode": "<fixedCode>",
      "fixDescription": "<fixDescription>",
      "createBackup": "<createBackup>"
    },
    "name": "electron_healer_fix_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
testPathYesPath to the test file to fix
fixedCodeYesThe corrected test code
createBackupYes
fixDescriptionYesDescription of what was fixed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose the two most important behaviors: the target file is overwritten with corrected code and a backup is created. It says nothing about failure modes, validation of the supplied code, or whether the backup name/location is discoverable, which matters for a destructive write.

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, no filler, and the primary action is stated first with the side effect second. Nothing here could be cut without losing information.

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?

For a four-required-parameter mutation tool with no annotations and no output schema, two sentences leave real gaps: return value, behavior on invalid code or a bad path, and whether the original file is recoverable after the backup. It is minimally adequate but thin for the risk profile.

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 coverage is 75%, so most parameters are already documented, and the baseline is 3. The description only adds that a backup is created, implicitly tying to createBackup, without explaining what createBackup=false means for recoverability or what fixDescription is used for beyond storage.

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: applying fixes to a test file and saving corrected code. It is clear what the tool does, but it never differentiates itself from plausible siblings such as electron_generator_write_test or electron_healer_debug_test, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this instead of the other healer/generator write tools, and no stated prerequisites such as having run the tests or debugged first. The agent gets a capability but no routing logic.

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