Skip to main content
Glama

add_device_to_board

Place a schematic component's footprint on a board at specified coordinates, copying the device and package into the project library.

Instructions

Place a schematic component's footprint on a board (copies device and package into the project library).

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>",
      "component": "<component>",
      "x_mm": "<x_mm>",
      "y_mm": "<y_mm>"
    },
    "name": "add_device_to_board"
  }
}

Input Schema

NameRequiredDescriptionDefault
flipNoPlace on the bottom side
x_mmYes
y_mmYes
boardNoBoard name, UUID or index; default: first
deviceNoDevice UUID/name; default: the component's assembly option
componentYesComponent designator (e.g. 'R1') or UUID
footprintNoFootprint name/UUID; default: first
project_pathYesPath to the project's *.lpp file or its directory
rotation_degNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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 mutation, so the safety profile is covered. The description adds one genuinely useful behavioral fact beyond them — that device and package are copied into the project library as a side effect — but says nothing about failure modes, overwrite behavior when a footprint already exists, or what is returned.

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?

A single front-loaded sentence with the core action first and the library side effect in parentheses; nothing is redundant. It is perhaps too terse for a 9-parameter mutation, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter board mutation with no output schema, the definition covers what it does and one side effect but leaves prerequisites, failure conditions, and result shape unaddressed. Adequate as a minimum but with clear gaps given the tool's complexity.

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 67%, so most parameters are documented in the schema itself. The parenthetical clarifies that the device and footprint parameters correspond to library entries being copied, adding slight meaning to those two, but placement parameters (x_mm, y_mm, rotation_deg, flip) and board selection receive no elaboration beyond the schema.

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 and resource: placing a schematic component's footprint onto a board, with the parenthetical clarifying that device/package are copied into the project library. This distinguishes it from pure-schematic tools like add_component, though it does not explicitly name or contrast any sibling such as move_component.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit when-to-use, when-not-to-use, or alternative routing guidance. An agent must infer from the verb whether this precedes or replaces add_component or move_component, and whether the component must already exist in the schematic.

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