Skip to main content
Glama

Patch the schematic

edit_circuit

Apply SEARCH/REPLACE patches to your latest script and re-run every check, as submit_circuit does. The latest script is your last submission when it was sent back (attempt_N_circuit.py), otherwise the design's circuit.py. Each search must match the current file exactly once (whitespace-sensitive); an empty replace deletes. Nothing is applied if any block fails to match.

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": {
      "design_id": "<design_id>",
      "edits": "<edits>"
    },
    "name": "edit_circuit"
  }
}

Input Schema

NameRequiredDescriptionDefault
editsYesOrdered patches.
design_idYesThe design id returned by create_design or list_designs.
check_sourcingNoCheck the parts against supplier catalogues (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / design_id / pattern
      Removed value: -"^[A-Za-z0-9_-]{8,80}$"
    • removedInput schema / properties / edits / items / properties / search / minLength
      Removed value: -1
    • removedInput schema / properties / edits / maxItems
      Removed value: -50
    • removedInput schema / properties / edits / minItems
      Removed value: -1
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false), it discloses strong behavioral traits: all-or-nothing application, exact-once whitespace-sensitive matching, and that an empty replace deletes content — a mutation detail the annotations do not capture. It doesn't describe what the checks return or how results are surfaced.

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?

Four short sentences, front-loaded with the action and the file targeted, then the matching rules. Every sentence carries operative information with no repetition of schema text.

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 three-parameter mutation tool with no output schema, the description covers target file, patch semantics, atomicity, and the fact that checks re-run like submit_circuit. The only gap is what the caller receives back from the re-run checks.

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

Parameters4/5

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

With 100% schema coverage the baseline is 3, and the description earns more by defining patch semantics: ordered blocks, exact-once matching, whitespace sensitivity, and empty-replace-as-delete. It leaves check_sourcing's behavior to the schema, which already documents it.

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 opens with a specific verb and resource ('Apply SEARCH/REPLACE patches to your latest script') and makes the behavioral relationship to submit_circuit explicit, so an agent can distinguish patching from full submission without opening either schema.

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

Usage Guidelines4/5

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

It clarifies which file is patched (last sent-back attempt_N_circuit.py, else circuit.py) and equates the post-patch check run with submit_circuit, which implies the choice between patching and resubmitting. It stops short of stating an explicit 'use this instead of submit_circuit when...' rule.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources