Skip to main content
Glama

Keepout areas

set_keepouts

Add or remove keepout rule areas. Each keepout is a rect or polygon on the given copper layers (default all) and forbids what it names: no_tracks, no_vias, no_zone_fills (all three default true), no_pads, no_footprints. route_board keeps tracks and vias out of them and KiCad DRC enforces them. remove takes names (wildcards allowed).

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_keepouts"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / add / items / properties / layers / maxItems
      Removed value: -32
    • removedInput schema / properties / add / items / properties / name / maxLength
      Removed value: -60
    • removedInput schema / properties / add / items / properties / name / minLength
      Removed value: -1
    • removedInput schema / properties / add / items / properties / polygon / items / additionalItems
      Removed value: -false
    • changedInput schema / properties / add / items / properties / polygon / items / items
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]New value: +false
    • removedInput schema / properties / add / items / properties / polygon / items / maxItems
      Removed value: -2
    • removedInput schema / properties / add / items / properties / polygon / items / minItems
      Removed value: -2
    • addedInput schema / properties / add / items / properties / polygon / items / prefixItems
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / add / items / properties / polygon / maxItems
      Removed value: -500
    • removedInput schema / properties / add / items / properties / polygon / minItems
      Removed value: -3
    • removedInput schema / properties / add / maxItems
      Removed value: -100
    • removedInput schema / properties / design_id / pattern
      Removed value: -"^[A-Za-z0-9_-]{8,80}$"
    • removedInput schema / properties / remove / items / maxLength
      Removed value: -60
    • removedInput schema / properties / remove / items / minLength
      Removed value: -1
    • removedInput schema / properties / remove / maxItems
      Removed value: -100
    • 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

A4.2/5.0
Behavior4/5

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

Annotations only cover the safety profile (readOnly=false, destructive=false, openWorld=false); the description adds substantial behavior — per-flag defaults (layers all, no_tracks/no_vias/no_zone_fills true), runtime effect on route_board, and DRC enforcement. It does not say whether removed keepouts are recoverable or how the response reports added/removed items, and the wildcard 'remove' sits slightly at odds with destructiveHint=false.

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?

Four dense sentences, front-loaded with purpose, then structure, then defaults, then downstream effects and remove semantics. No filler and no restatement of the title.

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 mutation tool with no output schema and no annotations beyond safety hints, the description covers defaults, effects on routing and DRC, and remove semantics. Missing only return/reporting behavior and whether removal is irreversible.

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 50%, and the description compensates with real meaning the schema lacks: layer default of 'all', the default-true semantics of no_tracks/no_vias/no_zone_fills, and that remove accepts glob patterns. It adds little on geometry, but the rect/polygon fields are already documented in the schema.

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?

States a specific verb pair and resource: 'Add or remove keepout rule areas', then defines the resource shape (rect or polygon on copper layers) and the flag vocabulary. This is enough for an agent to distinguish it from siblings like set_zones or set_design_rules without opening a schema.

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 implied rather than stated: the description explains that route_board honors the keepouts and that DRC enforces them, which tells the agent why to call it. It never says when to prefer this over set_zones/set_design_rules, nor any prerequisites beyond the implicit design_id.

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