Skip to main content
Glama

Connect nets (readable wiring)

sch_connect

Draw schematic nets automatically from pin lists: power symbols for rails, orthogonal wires for nearby pins, and net labels for long connections. Preview with dryRun before committing.

Instructions

The main wiring tool. Give it nets as lists of pins ("U1.3", "U1.VCC", "R1.2") and it draws them the way a human would: • power/ground names (GND, AGND, +3V3, 5V, VBAT…) → power/ground symbols on short stubs (power up, ground down); • nearby pins (≤ wireSpan, ≤ maxWirePins) → real orthogonal wires routed around parts, never shorting other nets, minimal bends/crossings; • long or many-pin nets → net labels; anything the router cannot reach automatically falls back to labels. Override per net with style: wire | label | flag. Use dryRun to preview. Follow with sch_snapshot to look at the result and sch_check to verify.

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": {
      "nets": "<nets>"
    },
    "name": "sch_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
netsYes
dryRunNo
wireSpanNomax (dx+dy) extent for auto-wiring, in 0.01in
maxWirePinsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/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 and largely succeeds: it discloses automatic style selection (power/ground symbols, orthogonal wires, labels), an explicit fallback to labels when routing fails, and a guarantee of not shorting other nets. It omits whether existing wiring is replaced or preserved, and any prerequisite such as an active schematic page.

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?

Front-loaded with the one-line purpose, then dense bullet fragments that each carry routing behavior, with the follow-up workflow in the closing sentence. Nearly every clause earns its place; nothing is repeated from the schema except a brief restatement of wireSpan.

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 four-parameter mutation tool with no annotations and no output schema, this covers behavior, fallback, preview, and verification adequately. The remaining gaps (return value, effect on existing wires, the undocumented `name` field) are real but secondary for an agent that only needs to call it correctly.

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?

Schema coverage is only 25%, so the description has to compensate, and it does for the most part: the pin string format ("U1.3", "U1.VCC", "R1.2") is explained nowhere in the schema and is essential. It also explains dryRun and the meaning of style values, but omits the "auto" enum value it lists in the schema and never explains the net object's `name` field.

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 concrete verb and resource: it takes nets as lists of pins and draws (wires) them, with the routing strategy spelled out. "The main wiring tool" implicitly claims primacy over the sibling sch_wire, but the definition never says how this differs from sch_wire or sch_flag, which the style enum (wire | label | flag) clearly overlaps.

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 real operational guidance: override per net with style, use dryRun to preview, then follow with sch_snapshot to inspect and sch_check to verify. That is a usable workflow. What it lacks is any when-not guidance relative to the closely named siblings sch_wire and sch_flag.

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