Skip to main content
Glama
easyeda-mcp-pro
by oaslananka

Connect pin to net

easyeda_schematic_connect_pin_to_net

Connects a specified component pin to a named net by drawing a short wire stub at its exact coordinate, so ERC, ratsnest, and autorouting recognize the connection.

Instructions

Create real EasyEDA connectivity for a pin: draws a short wire stub from its exact coordinate, tagged with netName. Same-netName wires merge globally, so this joins the pin to everything else on that net — visible to ERC, ratsnest, and autorouting.

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": {
      "projectId": "<projectId>",
      "primitiveId": "<primitiveId>",
      "pinNumber": "<pinNumber>",
      "netName": "<netName>",
      "confirmWrite": "<confirmWrite>"
    },
    "name": "easyeda_schematic_connect_pin_to_net"
  }
}

Input Schema

NameRequiredDescriptionDefault
netNameYesThe net name to connect the pin to (e.g. VCC, GND, DATA0)
pinNumberYesThe pin number or pin name on the component (e.g. "1", "VCC", "GND")
projectIdYesThe project/schematic ID
stubLengthNoLength of the wire stub drawn outward from the pin. Defaults to 10.
primitiveIdYesThe primitive ID of the component
confirmWriteYesMust be the literal boolean true (not the string "true") to allow this write.
expectedPcbUuidNoExpected focused PCB document UUID; reject a different focused PCB before a write.
expectedSchematicPageUuidNoExpected focused schematic page UUID; reject a different focused page before a write.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.19.10
    • addedInput schema / properties / expectedPcbUuid
      Added value: +{
      +  "description": "Expected focused PCB document UUID; reject a different focused PCB before a write.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / expectedSchematicPageUuid
      Added value: +{
      +  "description": "Expected focused schematic page UUID; reject a different focused page before a write.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv0.19.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed2 schema fields changedv0.19.1
    • addedInput schema / properties / confirmWrite / description
      Added value: +"Must be the literal boolean true (not the string \"true\") to allow this write."
    • addedInput schema / properties / stubLength
      Added value: +{
      +  "description": "Length of the wire stub drawn outward from the pin. Defaults to 10.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
  4. First observedv0.19.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and idempotentHint=false, so the description carries real weight here and delivers: it discloses that a physical wire stub is drawn, that same-netName wires merge globally, and that the result is visible to ERC, ratsnest, and autorouting — genuinely useful downstream consequences. It does not address the confirmWrite gating or the expectedUuid guards, nor what a repeated call does despite idempotentHint=false.

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 dense sentences with the core action front-loaded and the consequence (global merge, ERC/ratsnest visibility) following immediately. No filler, no restatement of the title, and every clause carries information the agent needs.

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 eight parameters, five required, and an output schema that covers return values, the description covers the essential mental model for a write tool. It is slightly thin on the write-safety contract — confirmWrite and the focused-page/PCB UUID preconditions are left entirely to the schema — but nothing critical to correct invocation is absent.

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 the schema already documents all eight parameters including stubLength, confirmWrite, and the expected-UUID guards. The description only reinforces netName ('tagged with netName') and adjacency to the pin coordinate, adding little semantic meaning beyond the structured fields; 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 names a specific verb and resource ('Create real EasyEDA connectivity for a pin') and explains the mechanism precisely: a short wire stub drawn from the pin's exact coordinate and tagged with netName. This mechanism distinguishes it in practice from add_wire and connect_pins_by_net, but no sibling is named explicitly, 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 Guidelines3/5

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

Usage is implied rather than stated: the agent can infer this is the tool for joining a single pin to a named net, and the mention of global same-name merging hints at the alternative bulk approach. However, there is no explicit 'use this instead of X when Y', and no guidance on when to prefer set_pin_no_connect or connect_pins_by_net.

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

Deploy Server

Other Tools