Skip to main content
Glama

apply_reasoned_fix

Apply a documented find/replace edit to a parked design and re-run it to fix diagnosed solver failures. Edits are logged and refused if they remove output requests.

Instructions

Apply a reasoned deck edit to a parked design and re-run it.

Edits are literal find/replace so the change is reviewable and lands in the fix log. Edits that remove output requests, or that delete most of the deck, are refused: a run is judged on its output, so deleting the output is not a fix.

Args: sweep: The sweep name. design_id: The parked design to repair. edits_json: JSON list of {"find": ..., "replace": ...} applied in order. rationale: Why this edit should fix the diagnosed failure. Recorded. max_iters: Deterministic fix iterations allowed on the re-run. cpus: CPUs for the solver.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cpusNo
sweepYes
design_idYes
max_itersNo
rationaleYes
edits_jsonYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It discloses that edits are literal find/replace, reviewable, and recorded in the fix log, and it explicitly enumerates refusal conditions (removing output requests or deleting most of the deck). This goes beyond a basic description and gives the agent concrete behavioral expectations. It does not mention error outcomes or asynchronous behavior, but the core behavior is transparent.

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?

The description is well-organized: a summary sentence, a behavioral note on edit semantics and refusals, and a parameter list. It is somewhat verbose but appropriately detailed for a complex tool. There is minor redundancy (e.g., 're-run it' and 'on the re-run' in max_iters), but overall structure supports clarity.

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?

The description covers the tool's purpose, parameters, constraints, and logging, and an output schema exists so return details are not needed. It adequately states the context ('parked design') and the refusal rules. Missing are potential adherence to before calling (e.g., whether the design must be parked) and whether the operation is synchronous, but these are likely implied by the absence of references to job creation. Overall, the essentials are present.

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

Parameters5/5

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

Schema description coverage is 0%, so the description's 'Args' section is the only source of parameter semantics. It explains all six arguments, including the format of edits_json (JSON list of find/replace pairs), the role of rationale (recorded), max_iters (deterministic fix iterations), and cpus (solver CPUs). This fully compensates for the absent schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('apply a reasoned deck edit') and the target ('a parked design'), and distinguishes it from siblings by emphasizing the 'reasoned' nature and the re-run behavior. It also explains the literal find/replace mechanism and the fix log, which separates it from automated correction tools like autocorrect_simulation.

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 description provides clear context: it is for repairing parked designs with reasoned edits, and it explicitly states what edits are refused. However, it does not explicitly mention when to prefer this tool over siblings, particularly autocorrect_simulation, nor does it offer exclusions or named alternatives. The 'reasoned' qualifier implies a contrast but is not made explicit.

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