Skip to main content
Glama

connect_pins

Draws a wire between two pins on the same schematic and assigns them to one net, refusing connections when the pins already belong to different nets.

Instructions

Draw a wire between two pins on the same schematic and join them to one net. Refuses if the pins are already on different nets.

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": {
      "project_path": "<project_path>",
      "pin_a": "<pin_a>",
      "pin_b": "<pin_b>"
    },
    "name": "connect_pins"
  }
}

Input Schema

NameRequiredDescriptionDefault
pin_aYesPin as 'DESIGNATOR:PIN', PIN = symbol pin name or component signal name, e.g. 'R1:1', 'U1:VCC'
pin_bYesPin as 'DESIGNATOR:PIN', PIN = symbol pin name or component signal name, e.g. 'R1:1', 'U1:VCC'
net_nameNoNet to use/create; default: existing net of either pin, else auto-named
project_pathYesPath to the project's *.lpp file or its directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive mutation, so the safety profile is covered. The description adds a genuine behavioral fact — the cross-net refusal condition — but does not say what happens to existing wiring or net memberships when the two pins' nets are merged, nor how the resulting net is identified. That side-effect gap is meaningful for a schematic-mutating tool.

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?

Two short sentences, front-loaded with the action and followed by the failure condition. No filler, no restatement of the tool name, and every sentence earns its place.

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 4-parameter mutation tool with no output schema, the description covers the action, the scope (same schematic), the net outcome, and one failure mode. It is nearly complete; the main omission is what the call returns or which net is reported as created/reused, but the essentials for correct invocation are present.

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%, including the format for pin_a/pin_b and the defaulting rule for net_name, so the schema already carries the parameter burden. The description only implies that the two pins share one resulting net and does not add format or defaulting detail beyond the schema. 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?

The description states a concrete verb and resource: 'Draw a wire between two pins on the same schematic and join them to one net.' That is unambiguous about the operation and its scope (same schematic, single net). It does not explicitly name a sibling such as disconnect_pins, so it stops just short of the top mark.

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?

Usage is only implied by the operation itself; there is no explicit 'use this when...' or 'use X instead when...' guidance. The one precondition given ('Refuses if the pins are already on different nets') is a constraint rather than routing guidance. An agent can infer the intent, but nothing distinguishes it explicitly from alternatives like create_net.

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