Skip to main content
Glama

create_via

Adds a through-hole via (top-to-bottom copper) on a specified net and returns a 'via:' endpoint for connecting traces.

Instructions

Add a through-hole via (top to bottom copper) on a net. Connect it with create_trace using the returned 'via:' endpoint.

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>",
      "net": "<net>",
      "x_mm": "<x_mm>",
      "y_mm": "<y_mm>"
    },
    "name": "create_via"
  }
}

Input Schema

NameRequiredDescriptionDefault
netYesNet name or UUID
x_mmYes
y_mmYes
boardNoBoard name, UUID or index; default: first
size_mmNoOuter diameter; default drill+0.4
drill_mmNodefault: board default
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

A4/5.0
Behavior3/5

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

Annotations already declare a non-read-only, non-idempotent, non-destructive write. The description adds genuinely useful behavior beyond them: the via is through-hole only and the call returns a 'via:<uuid>' handle. It does not state persistence/permission requirements, whether the net must pre-exist, or what happens if coordinates collide with existing copper.

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, zero filler, and the core action is front-loaded before the follow-up instruction. Nothing could be removed without losing information.

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 write tool with no output schema, the description supplies the key missing piece, the returned 'via:<uuid>' handle, and covers 6 of 7 parameters via schema. It is only slightly short of fully complete, mainly on preconditions such as net existence and units.

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 71%, with defaults and meanings documented for board, size_mm, drill_mm, net, and project_path. The description adds no parameter-level meaning beyond the net concept, so the schema carries essentially all the weight; baseline 3 is appropriate.

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?

States a specific verb and resource (add a through-hole via) plus the geometric scope (top to bottom copper) and the net it belongs to. The parenthetical and the follow-on reference to create_trace make it unambiguous against the sibling trace-drawing tool.

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?

Explicitly tells the agent what to do next (connect it with create_trace using the returned 'via:<uuid>' endpoint), which establishes the compositional workflow. It stops short of stating exclusions, such as that this creates only through-hole vias and not blind/buried ones, or that a net must already exist.

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