Skip to main content
Glama

Prune checked anonymous wire tails

gdf_wire_cleanup
Destructive

Remove unannotated electrical leaf segments from GDF6 pin-bearing physical nets while preserving named wires, pins, and isolated nets; previews, backs up, then compiles and simulates.

Instructions

Remove only unannotated electrical leaf segments in GDF6 pin-bearing physical nets. Preserve surviving token bytes, named wires, pins, isolated unconnected nets and overlapping conductors. Every round checks source scalar pin partitions and complete bus bit/alias partitions. Refuse unknown topology or exceeded budgets; compile and simulate the result independently. Fresh hash, preview and backup transaction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFile path within the selected scope.
confirmNoApply when true; default preview without writing.
projectNoExisting ACF whose directory scopes files.
maxPassesNoMaximum leaf-peeling rounds, default1000.
workspaceNoWorkspace scope when no project is selected.
expectedSha256YesCurrent full GDF SHA-256 from a fresh inspection.
maxComparisonsNoFixed-cap cleanup comparison budget, default4000000; caller may lower it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.10.3

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare destructive=true and idempotent=false, and the description meaningfully adds to that: it enumerates exactly what is destroyed (unannotated leaves only) versus what survives (named wires, pins, isolated nets, overlapping conductors), and discloses refusal and compile/simulate/backup behavior. This is real depth beyond the annotation flags.

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?

Dense but front-loaded: the removal scope leads, followed by preservation, invariants, refusal, and transaction semantics in tight sentences. No filler, though the telegraphic phrasing borders on terse.

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 destructive, non-idempotent mutation with no output schema, the definition covers the destructive surface, safeguards (preview/backup/fresh hash), and refusal boundaries. Return values need no explanation absent an output schema.

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 path, confirm, expectedSha256, maxPasses, maxComparisons, project and workspace are already fully documented. The description gestures at the budget and hash (via 'fresh hash', 'exceeded budgets') but adds no syntax or format detail beyond the schema, which is the correct baseline.

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 ('Remove') and a tightly scoped resource ('unannotated electrical leaf segments in GDF6 pin-bearing physical nets'), which cleanly separates it from gdf_edit and gdf_construct. The jargon is heavy but the intent is unambiguous to a domain agent.

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 'Remove only...' scoping and the preserve list implicitly tell the agent when this is appropriate, and the refusal conditions (unknown topology, exceeded budgets) bound its use. However, it never names an alternative tool or an explicit when-not condition, so routing versus siblings like gdf_edit remains inferred.

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