Skip to main content
Glama

Debug a real circuit

debug_circuit

Finds why a circuit someone built does not work, such as an LED that stays off or a 555 that does not blink on a breadboard. Takes the symptom and either the circuit or a description of what was built, which it draws as built. Simulates that and a proposed fix, and says if the simulator confirms the fix or the circuit as drawn works (so the fault is on the board). Returns the likely causes, its reading of a described circuit, live links to both circuits, checks to make on the board and the readings a working circuit gives. Takes up to 3 minutes. Counts toward the daily design limit.

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": {
      "symptom": "<symptom>"
    },
    "name": "debug_circuit"
  }
}

Input Schema

NameRequiredDescriptionDefault
circuitNoThe circuit: CircuitJS (falstad.com/circuit) text, a "$" options line then one part per line such as "r 176 112 304 112 0 220" for a 220 ohm resistor (at most 20,000 characters), or a breadboardhub.com/sim link that carries one.
symptomYesWhat goes wrong, what was expected, and anything measured, such as "the LED does not light; the battery reads 9V" (3 to 1,000 characters).
descriptionNoWhat was built, drawn as built with any mistakes: the parts, their values and what connects to what, including which way round parts are, such as "9V battery + to a 470 ohm resistor, then the LED long leg, short leg to battery -" (up to 3,000 characters). Needed when no circuit is given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / circuit / description
      Previous value: -"The circuit: a CircuitJS export (a \"$\" options line, then one part per line, at most 20,000 characters), or a breadboardhub.com/sim link that carries one."New value: +"The circuit: CircuitJS (falstad.com/circuit) text, a \"$\" options line then one part per line such as \"r 176 112 304 112 0 220\" for a 220 ohm resistor (at most 20,000 characters), or a breadboardhub.com/sim link that carries one."
    • changedInput schema / properties / description / description
      Previous value: -"What was built: the parts, their values and what connects to what, including which way round parts are (up to 3,000 characters). Needed when no circuit is given."New value: +"What was built, drawn as built with any mistakes: the parts, their values and what connects to what, including which way round parts are, such as \"9V battery + to a 470 ohm resistor, then the LED long leg, short leg to battery -\" (up to 3,000 characters). Needed when no circuit is given."
    • changedInput schema / properties / symptom / description
      Previous value: -"What goes wrong, what was expected, and anything measured (3 to 1,000 characters)."New value: +"What goes wrong, what was expected, and anything measured, such as \"the LED does not light; the battery reads 9V\" (3 to 1,000 characters)."
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

Adds substantial behavior beyond the annotations: a runtime of up to 3 minutes, consumption of the daily design limit, and the shape of the response (likely causes, live links, board checks, expected readings). The annotations only declare it is not read-only, not destructive, not idempotent, and closed-world, which the description does not contradict. The quota and latency disclosures are the main value added here.

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?

Front-loads the purpose in the first sentence and keeps everything in one dense paragraph with no filler. Some sentences are long and pack multiple ideas (simulation, fix confirmation, fault location), which slightly hurts scanability but nothing is wasted.

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?

With no output schema, the description carries the return-value burden and does so: likely causes, its reading of a described circuit, live links to both circuits, board checks, and expected readings. It also covers latency and quota. Only the absence of sibling differentiation keeps it from a 5.

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 100%, so the schema already documents all three parameters, including that description is needed when no circuit is given. The description restates the either/or relationship and adds that a described circuit is drawn as built, which is mild added meaning rather than new syntax or format guidance. Baseline 3 applies.

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 and resource: it finds why a built circuit fails, with concrete examples (LED stays off, 555 not blinking on a breadboard). It also describes the mechanism (draws the circuit, simulates it plus a proposed fix). It does not explicitly distinguish itself from siblings like check_circuit or simulate_circuit, so it stops short of a 5.

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?

Gives clear triggering context: use it when a circuit someone built does not work, supplying the symptom plus either the circuit or a description of what was built. It also explains the either/or input choice. It names no alternatives or exclusions, so an agent cannot tell from this text alone when to prefer check_circuit or simulate_circuit.

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