Skip to main content
Glama

create_trace

Draws a copper trace between two pads, vias, or junctions on the same net, optionally through corner points, and returns junction endpoints for branching. Run DRC afterward to check clearances.

Instructions

Draw a copper trace between two pads/vias/junctions of the same net, optionally via corner points. Returns the corner points as 'junction:' endpoints so later traces can branch from them. Clearances are not checked here: run run_drc afterwards.

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>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "create_trace"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesPad as 'DESIGNATOR:PAD' (pad name or signal name), 'via:<uuid>', or 'junction:<uuid>' (a waypoint returned by an earlier create_trace, for T-joins)
boardNoBoard name, UUID or index; default: first
layerNoCopper layer: top_cu, bot_cu, or in1_cu... (inner)top_cu
startYesPad as 'DESIGNATOR:PAD' (pad name or signal name), 'via:<uuid>', or 'junction:<uuid>' (a waypoint returned by an earlier create_trace, for T-joins)
width_mmNodefault: board default trace width
waypointsNoIntermediate corner points [[x_mm, y_mm], ...]
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.4/5.0
Behavior4/5

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

Annotations already state readOnlyHint=false, non-idempotent and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior beyond that: it discloses that no clearance validation happens and that the created junction endpoints are returned as 'junction:<uuid>' so later traces can branch from them, which is the key downstream consequence of calling it.

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?

Three tight sentences, front-loaded with the action, followed by the return-value behavior and the validation caveat. Every sentence carries information and nothing is repeated from the schema.

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 7-parameter mutation tool with no output schema, the description covers the operation, the return shape (junction endpoints), and the required follow-up (run_drc). It is nearly complete; only edge behaviors such as net-mismatch errors or failure modes are left unaddressed.

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 already 100%, so the baseline is 3. The description still adds meaning by tying 'waypoints' to 'corner points' and clarifying that the resulting junctions are reusable branch points for T-joins, which goes beyond the schema's per-field wording.

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?

The description opens with a precise verb and resource: 'Draw a copper trace between two pads/vias/junctions of the same net, optionally via corner points.' It names the endpoint types accepted and the scoping constraint (same net), so an agent can tell exactly what operation this performs without opening the schema.

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?

It gives clear sequencing guidance: 'Clearances are not checked here: run run_drc afterwards', naming the sibling to run and the condition that triggers it. It stops short of a full when/when-not routing (e.g. no guidance on alternatives to create_trace itself or when a via would be more appropriate), so it is strong but not exhaustive.

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