Skip to main content
Glama

Set the board outline

set_board_outline

Replace everything on Edge.Cuts with a new outline: rect (optionally with corner_radius_mm), a polygon of points, or fit_to_parts (the rectangle around every footprint courtyard plus margin_mm). Give exactly one.

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

Input Schema

NameRequiredDescriptionDefault
rectNo
wait_sNoSeconds to wait (default 55); a job still running comes back "running" for get_board_job.
polygonNo
design_idYesThe design id returned by import_kicad_project or list_designs.
fit_to_partsNo
line_width_mmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / design_id / pattern
      Removed value: -"^[A-Za-z0-9_-]{8,80}$"
    • removedInput schema / properties / polygon / items / additionalItems
      Removed value: -false
    • changedInput schema / properties / polygon / items / items
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]New value: +false
    • removedInput schema / properties / polygon / items / maxItems
      Removed value: -2
    • removedInput schema / properties / polygon / items / minItems
      Removed value: -2
    • addedInput schema / properties / polygon / items / prefixItems
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / polygon / maxItems
      Removed value: -2000
    • removedInput schema / properties / polygon / minItems
      Removed value: -3
    • changedInput schema / properties / wait_s / description
      Previous value: -"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job. A job is allowed the time its budget asks for (time_budget_s, total_budget_s, rounds), and survives a server restart (the op starts over from its snapshot; route_board's pipeline goes on from its last finished stage)."New value: +"Seconds to wait (default 55); a job still running comes back \"running\" for get_board_job."
  2. Changed1 schema field changed
    • changedInput schema / properties / wait_s / description
      Previous value: -"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job. A job is allowed the time its budget asks for (time_budget_s, total_budget_s, rounds), and survives a server restart (the op starts over from its snapshot)."New value: +"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job. A job is allowed the time its budget asks for (time_budget_s, total_budget_s, rounds), and survives a server restart (the op starts over from its snapshot; route_board's pipeline goes on from its last finished stage)."
  3. Changed1 schema field changed
    • changedInput schema / properties / wait_s / description
      Previous value: -"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job."New value: +"Seconds to wait for the job (default 55). A job still running comes back with status \"running\": follow it with get_board_job. A job is allowed the time its budget asks for (time_budget_s, total_budget_s, rounds), and survives a server restart (the op starts over from its snapshot)."
  4. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false and openWorldHint=false, so the mutating-local character of the tool is known. The description adds real value by stating that existing Edge.Cuts content is replaced wholesale, which is exactly the kind of 'what gets destroyed' context annotations do not convey; it sits in mild tension with destructiveHint=false, though scoped to a single layer that is arguably recoverable via the revision siblings. It still says nothing about whether the change is immediate or asynchronous, or what happens to geometry that crosses the new outline.

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?

One sentence, front-loaded with the destructive scope ('Replace everything on Edge.Cuts'), followed by a compact enumeration of the three modes and a closing constraint. No filler, no repetition of the title, and the ordering mirrors how an agent would choose an argument.

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 six-parameter tool with nested objects and no output schema, the description covers the core decision (which shape argument) but leaves the agent guessing about line_width_mm's role, about job semantics implied by wait_s and get_board_job, and about any validation or failure behavior. Adequate to call the tool, not sufficient to predict its outcome.

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 only 33%, so the description has to carry weight, and it does: it explains the mutual exclusivity of rect/polygon/fit_to_parts (not expressible in the flat schema), clarifies that corner_radius_mm belongs to rect and margin_mm to fit_to_parts, and defines fit_to_parts as the rectangle around every footprint courtyard plus margin. Unmentioned are line_width_mm, wait_s and design_id, though those do carry schema descriptions.

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?

The description gives a specific verb ('Replace') and resource ('everything on Edge.Cuts'), then enumerates the three accepted outline forms: rect, polygon, fit_to_parts. That is far more specific than the title alone and lets an agent distinguish this from layer-oriented siblings like set_keepouts or set_zones. It stops short of naming any sibling explicitly, so it is clear but not fully differentiated.

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?

'Give exactly one' is a genuine usage rule: it tells the agent the three shape arguments are mutually exclusive, which is not otherwise inferable. However, there is no guidance on when to prefer rect vs fit_to_parts vs polygon, and no mention of prerequisites (e.g. an imported project / valid design_id) or of related tools like get_board_job.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources