Skip to main content
Glama

lib_add_footprint_track

Adds a line track to a footprint on silkscreen or courtyard layers using coordinates, width, layer, and units, so you can define component outlines and assembly markings.

Instructions

Add a track to the current footprint (for silkscreen/courtyard).

Args: x1: Start X in mils y1: Start Y in mils x2: End X in mils y2: End Y in mils width: Track width in mils layer: Layer name. Default "TopOverlay" (silkscreen). Any Altium layer is accepted, e.g. "BottomOverlay" or "Mechanical1".."Mechanical16" for courtyard / assembly outlines. footprint_name: footprint to write into. Empty uses the editor's current footprint; a name makes that footprint current first and refuses if it cannot. units: "mil" (default) or "mm", for every length and coordinate here, kept exact rather than rounded to whole mils.

Returns: Dictionary confirming track addition

Input Schema

NameRequiredDescriptionDefault
x1Yes
x2Yes
y1Yes
y2Yes
layerNoTopOverlay
unitsNomil
widthNo
footprint_nameNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses that the call mutates the current footprint, that a named footprint is made current first and the call 'refuses if it cannot', and that mm values are kept exact rather than rounded. Missing permission/edit-mode requirements and whether tracks can be undone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Docstring layout with Args/Returns is front-loaded and each line earns its place; slightly verbose in repeating 'in mils' per coordinate, but that redundancy reinforces the units contract.

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?

An output schema exists, so the brief 'Returns: Dictionary confirming track addition' is sufficient. For a mutation tool with no annotations and 8 parameters, the geometry, units, layer and target-footprint semantics are all covered; only permission/state prerequisites are absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, and the description compensates fully: every parameter is documented with units (mils, or 'mil'/'mm' applying to all lengths), defaults (layer=TopOverlay, units=mil), accepted layer values (BottomOverlay, Mechanical1..16), and the empty-vs-named semantics of footprint_name.

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+resource: 'Add a track to the current footprint' with the intended uses (silkscreen/courtyard) parenthesized. It never distinguishes itself from the sibling lib_add_footprint_tracks (plural batch version), which is the main risk of misselection.

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?

Use context is implied ('for silkscreen/courtyard') and the layer parameter hints at mechanical/courtyard outlines, but there is no explicit when-to-use vs the batch lib_add_footprint_tracks or lib_add_footprint_regions/arc, and no prerequisites such as needing a footprint library open.

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