Skip to main content
Glama

EasyGerber: AI PCB design, layout, and routing

Check PCB layout for blocking issues

check_board_layout
Idempotent

Checks a saved PCB layout at expectedRevision for manufacturing or layout review. create_board and update_board already return this check as validation when their layout finished in time; call this when validation is null while layout.current is true. Its geometry and applied electrical requirements must both be current. A missing or stale layout must complete first: follow the job a save started with get_generation, or call generate_layout when none is active. electrical_requirements_not_applied also requires a completed regeneration before checking or manufacturing export. Reuses a current assessment or computes and saves one, which requires write access and normal compute capacity. If the board changes during the check, read get_board again. Returns hasBlockingIssues and actionable blockingIssues.

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": {
      "expectedRevision": "<expectedRevision>",
      "boardRef": "<boardRef>"
    },
    "name": "check_board_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
boardRefYesPrivate board reference. For a new board generate 32 random bytes, encode as unpadded base64url, and prepend egbr1_. Keep this same value for creation retries and every later board operation. Copy returned references unchanged. Keep it in this conversation or supported private execution state; never put it in logs or source files. A private board link may carry it in its fragment.
expectedRevisionYesLatest saved revision: the revision the last create_board, update_board or get_board returned, or boardRevision from get_generation or check_board_layout. A layout that finishes after a save has returned advances it. A mismatch returns revision_conflict; read the board again before preparing a new operation.

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedOutput schema / properties / data / properties / placementIssueCount / description
      Previous value: -"Total misplaced reference labels when more than the listed issues remain. Read the new revision after fixing a batch."New value: +"Total silkscreen placement warnings when the result lists only the first warnings."
    • changedOutput schema / properties / data / properties / placementIssues / description
      Previous value: -"Authored reference labels that need attention on this saved revision. Use update_board with its boardRef, expectedRevision and a fresh requestId to apply a suggested side or exact position."New value: +"Nonblocking placement warnings for authored silkscreen on this revision. Report warnings to the user and edit placements only when asked."
    • removedOutput schema / properties / data / properties / placementIssues / items / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / data / properties / placementIssues / items / oneOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "const": "label_placement",
      +        "type": "string"
      +      },
      +      "labelId": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "path": {
      +        "type": "string"
      +      },
      +      "reason": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "labelId",
      +      "path",
      +      "reason",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "const": "designator_placement",
      +        "type": "string"
      +      },
      +      "labelId": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "partId": {
      +        "type": "string"
      +      },
      +      "path": {
      +        "type": "string"
      +      },
      +      "reason": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "labelId",
      +      "path",
      +      "reason",
      +      "message",
      +      "partId"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / data / properties / placementIssues / items / properties
      Removed value: -{
      -  "code": {
      -    "const": "designator_placement",
      -    "type": "string"
      -  },
      -  "labelId": {
      -    "type": "string"
      -  },
      -  "message": {
      -    "type": "string"
      -  },
      -  "partId": {
      -    "type": "string"
      -  },
      -  "path": {
      -    "type": "string"
      -  },
      -  "reason": {
      -    "type": "string"
      -  },
      -  "suggestedPosition": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "x": {
      -        "type": "number"
      -      },
      -      "y": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "x",
      -      "y"
      -    ],
      -    "type": "object"
      -  },
      -  "suggestedSides": {
      -    "items": {
      -      "enum": [
      -        "above",
      -        "below",
      -        "left",
      -        "right",
      -        "above-left",
      -        "above-right",
      -        "below-left",
      -        "below-right",
      -        "left-top",
      -        "left-bottom",
      -        "right-top",
      -        "right-bottom"
      -      ],
      -      "type": "string"
      -    },
      -    "type": "array"
      -  }
      -}
    • removedOutput schema / properties / data / properties / placementIssues / items / required
      Removed value: -[
      -  "code",
      -  "partId",
      -  "labelId",
      -  "path",
      -  "reason",
      -  "message"
      -]
    • removedOutput schema / properties / data / properties / placementIssues / items / type
      Removed value: -"object"
  2. Changed2 schema fields changed
    • addedOutput schema / properties / data / properties / placementIssueCount
      Added value: +{
      +  "description": "Total misplaced reference labels when more than the listed issues remain. Read the new revision after fixing a batch.",
      +  "exclusiveMinimum": 12,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / data / properties / placementIssues
      Added value: +{
      +  "description": "Authored reference labels that need attention on this saved revision. Use update_board with its boardRef, expectedRevision and a fresh requestId to apply a suggested side or exact position.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "const": "designator_placement",
      +        "type": "string"
      +      },
      +      "labelId": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "partId": {
      +        "type": "string"
      +      },
      +      "path": {
      +        "type": "string"
      +      },
      +      "reason": {
      +        "type": "string"
      +      },
      +      "suggestedPosition": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "x": {
      +            "type": "number"
      +          },
      +          "y": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "x",
      +          "y"
      +        ],
      +        "type": "object"
      +      },
      +      "suggestedSides": {
      +        "items": {
      +          "enum": [
      +            "above",
      +            "below",
      +            "left",
      +            "right",
      +            "above-left",
      +            "above-right",
      +            "below-left",
      +            "below-right",
      +            "left-top",
      +            "left-bottom",
      +            "right-top",
      +            "right-bottom"
      +          ],
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "partId",
      +      "labelId",
      +      "path",
      +      "reason",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 12,
      +  "type": "array"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / expectedRevision / description
      Previous value: -"Latest saved revision: boardRevision from get_generation, or revision from get_board. A completed layout advances it after create_board or update_board returns. A mismatch returns revision_conflict; read the board again before preparing a new operation."New value: +"Latest saved revision: the revision the last create_board, update_board or get_board returned, or boardRevision from get_generation or check_board_layout. A layout that finishes after a save has returned advances it. A mismatch returns revision_conflict; read the board again before preparing a new operation."
  4. Changed1 schema field changed
    • changedInput schema / properties / expectedRevision / description
      Previous value: -"Latest saved revision from create_board, update_board or get_board. Reuse it if no intervening change is known. A mismatch returns revision_conflict; read the board again before preparing a new operation."New value: +"Latest saved revision: boardRevision from get_generation, or revision from get_board. A completed layout advances it after create_board or update_board returns. A mismatch returns revision_conflict; read the board again before preparing a new operation."
  5. Changed2 schema fields changed
    • addedOutput schema / properties / data / properties / validation / properties / blockingIssues / items / properties / refs / properties / keepouts
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / data / properties / validation / properties / blockingIssues / items / properties / refs / properties / zones
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  6. Changed6 schema fields changed
    • removedInput schema / properties / boardId
      Removed value: -{
      -  "description": "Saved board ID from list_boards, create_board, claim_guest_board, or an account board URL. Must be accessible to the current account or guest session.",
      -  "format": "uuid",
      -  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -  "type": "string"
      -}
    • addedInput schema / properties / boardRef
      Added value: +{
      +  "description": "Private board reference. For a new board generate 32 random bytes, encode as unpadded base64url, and prepend egbr1_. Keep this same value for creation retries and every later board operation. Copy returned references unchanged. Keep it in this conversation or supported private execution state; never put it in logs or source files. A private board link may carry it in its fragment.",
      +  "pattern": "^(?:egbr1_[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]|egba1_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\.[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048])$",
      +  "type": "string"
      +}
    • removedInput schema / properties / guestToken
      Removed value: -{
      -  "description": "Private continuation capability from create_board.guestAccess.guestToken or start_guest_session. Reuse it for this guest board. Never print it or save it in a repository.",
      -  "maxLength": 200,
      -  "minLength": 32,
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "boardId",
      -  "expectedRevision"
      -]New value: +[
      +  "expectedRevision",
      +  "boardRef"
      +]
    • addedOutput schema / properties / data / properties / boardRef
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / data / required
      Previous value: -[
      -  "boardRevision",
      -  "validation"
      -]New value: +[
      +  "boardRevision",
      +  "validation",
      +  "boardRef"
      +]
  7. Changed1 schema field changed
    • changedInput schema / properties / guestToken / description
      Previous value: -"Private guest-session capability returned by start_guest_session. Never print it or save it in a repository."New value: +"Private continuation capability from create_board.guestAccess.guestToken or start_guest_session. Reuse it for this guest board. Never print it or save it in a repository."
  8. Changed1 schema field changed
    • changedInput schema / properties / expectedRevision / description
      Previous value: -"Saved revision returned by get_board. A mismatch returns revision_conflict; read the board again before preparing a new operation."New value: +"Latest saved revision from create_board, update_board or get_board. Reuse it if no intervening change is known. A mismatch returns revision_conflict; read the board again before preparing a new operation."
  9. Changed2 schema fields changed
    • addedInput schema / properties / boardId / description
      Added value: +"Saved board ID from list_boards, create_board, claim_guest_board, or an account board URL. Must be accessible to the current account or guest session."
    • addedInput schema / properties / expectedRevision / description
      Added value: +"Saved revision returned by get_board. A mismatch returns revision_conflict; read the board again before preparing a new operation."
  10. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the call may compute and persist an assessment ('reuses a current assessment or computes and saves one'), which explains the readOnlyHint=false annotation, and that this requires write access and normal compute capacity. It also names revision_conflict behavior and the precondition that a regeneration must complete before checking. Return values (hasBlockingIssues, blockingIssues) are summarized even though an 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.

Conciseness4/5

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

Front-loaded with the verb and resource, then prerequisites, then behavior, which is the right order. The middle sentences are long compound conditionals that demand careful reading, but essentially every clause carries operational information rather than filler.

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

Completeness5/5

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

For a two-parameter tool with a rich output schema, this covers what completeness requires: preconditions, the state dependency on layout.current and applied requirements, the regeneration workaround via get_generation/generate_layout, permission and compute requirements, and the re-read-on-change recovery path. Nothing an agent needs to call it correctly is missing.

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 100%, and the schema already defines expectedRevision in detail, so the baseline is 3. The description adds real semantic value by tying expectedRevision to the precondition that both geometry and applied electrical requirements must be current, and by naming revision_conflict on mismatch, but it does not add anything about boardRef that the schema does not already cover.

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 and resource ('Checks a saved PCB layout at expectedRevision') plus the purpose (manufacturing or layout review). It also explicitly distinguishes itself from create_board and update_board, which already return the same check as validation, so an agent can tell why this exists as a separate tool.

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

Usage Guidelines5/5

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

Gives an explicit trigger ('call this when validation is null while layout.current is true'), explicit prerequisites ('geometry and applied electrical requirements must both be current'), and explicit alternatives ('follow the job a save started with get_generation, or call generate_layout when none is active'). It also covers two failure paths: a stale/missing layout and electrical_requirements_not_applied, and says to re-read get_board if the board changes mid-check.

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.