Skip to main content
Glama

set_board_outline

Replace a LibrePCB board outline with a custom polygon from vertex coordinates or an origin-anchored width-by-height rectangle.

Instructions

Replace the board outline with a polygon or a width x height rectangle at the origin.

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>"
    },
    "name": "set_board_outline"
  }
}

Input Schema

NameRequiredDescriptionDefault
boardNoBoard name, UUID or index; default: first
pointsNoPolygon vertices [[x_mm, y_mm], ...]; closed automatically
width_mmNoRectangle from (0,0) if no points
height_mmNo
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

A3.5/5.0
Behavior3/5

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

The word 'Replace' does disclose that any prior outline is overwritten, which adds meaningful context beyond the annotations. However, with readOnlyHint=false, idempotentHint=false and destructiveHint=false declared, the description does not clarify that a second identical call may still count as a change, nor what happens if both a polygon and dimensions are supplied. No output format is described, and none is expected since no output schema exists.

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?

A single front-loaded sentence with no filler; the two accepted shape modes are named in the order an agent needs them. Nothing is redundant with the name or title.

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 mutation tool with five parameters, one required, and no output schema, the definition covers the happy path but omits what an agent most needs to know: what happens on conflicting or missing shape arguments and what units/errors to expect. It is adequate but leaves real gaps for a non-idempotent modification.

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 80%, so the schema already documents 'board', 'points' and 'width_mm' including the '(0,0)' anchoring and automatic closing. The description only reinforces the origin placement for the rectangle form; it adds no new meaning for 'height_mm' (undescribed in the schema) or for precedence between conflicting shape inputs.

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 specific verb and resource ('Replace the board outline') and enumerates the two accepted shapes (polygon or width x height rectangle), so an agent knows exactly what the call accomplishes. It does not name or contrast any sibling, but no sibling in the provided set performs outline replacement, so ambiguity risk is low.

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 only implied: the description says what shapes are accepted but never states when to prefer this tool, when it is inappropriate, or that this is the way to define a board's boundary before adding components. The mutual exclusivity of 'points' vs 'width_mm'/'height_mm' is left to the schema to convey.

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