Skip to main content
Glama

EasyGerber: AI PCB design, layout, and routing

Generate PCB layout

generate_layout
Idempotent

Starts one durable layout job for boardRef at expectedRevision and waits for it: returns generation completed with the new boardRevision, or still queued or running with pollAfterSeconds to follow with get_generation. A completed layout is not yet checked; call check_board_layout with that boardRevision. The job routes the board as it is placed; a board with a part that has no position, or without a size, is refused until update_board supplies them. create_board and update_board start their own layout job. Call generate_layout after a failed or cancelled layout, after layoutNotStarted, or for a user-requested regeneration. Set routingEngine when a user requests a specific release or to retry the release named in layout.requestedRoutingEngine. When get_board reports layout.upgradeAvailable, an EGT-2 Vela upgrade reroutes the saved placements without a board edit. If a layout of that same revision with the selected router is already running or was just saved, returns that job instead of starting another. Use the latest revision from get_generation or get_board. Read status with get_generation using the same boardRef; do not regenerate to inspect progress. Successful completion replaces the saved layout; the board is kept as it was, and update_board with restoreRevision set to this call's expectedRevision returns to it. A requestId supports IDENTICAL retries only; changed arguments need a new requestId. revision_conflict requires get_board; board_busy identifies the existing job to poll. Subject to normal compute capacity and board complexity limits, without AI credits.

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>",
      "requestId": "<requestId>",
      "boardRef": "<boardRef>"
    },
    "name": "generate_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.
requestIdYesNew UUID for this operation. Reuse it with identical arguments when retrying an uncertain result; use a new UUID for a different operation.
routingEngineNoReleased PCB router ID. Omit to reuse the board’s selected release, or use the default release on a new or legacy board.
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. Changed1 schema field changed
    • addedInput schema / properties / routingEngine
      Added value: +{
      +  "description": "Released PCB router ID. Omit to reuse the board’s selected release, or use the default release on a new or legacy board.",
      +  "enum": [
      +    "EGT-2"
      +  ],
      +  "type": "string"
      +}
  2. 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."
  3. 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."
  4. 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",
      -  "requestId"
      -]New value: +[
      +  "expectedRevision",
      +  "requestId",
      +  "boardRef"
      +]
    • addedOutput schema / properties / data / properties / boardRef
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / data / required
      Previous value: -[
      -  "generation",
      -  "boardRevision"
      -]New value: +[
      +  "generation",
      +  "boardRevision",
      +  "boardRef"
      +]
  5. 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."
  6. 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."
  7. Changed3 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."
    • addedInput schema / properties / requestId / description
      Added value: +"New UUID for this operation. Reuse it with identical arguments when retrying an uncertain result; use a new UUID for a different operation."
  8. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations, it discloses that successful completion replaces the saved layout while the board is preserved and restorable via update_board with restoreRevision, which sharpens the meaning of destructiveHint=false. It also covers deduplication (an already-running or just-saved job is returned), requestId retry semantics, and failure routing (revision_conflict → get_board, board_busy → existing job). Minor gap: no indication of expected duration or queue-time behavior beyond 'normal compute capacity'.

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 core action and result, then ordered by decision need (verify, prerequisites, triggers, router choice, dedup, recovery). It is dense and semicolon-heavy across roughly ten clauses, so some operational rules could be grouped more tightly, but nearly every sentence carries information an agent needs.

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 long-running job tool with four parameters and an output schema, it covers triggering, polling, verification, prerequisites (missing part position or board size), router selection, idempotency, and error recovery. An agent can invoke and follow up correctly without consulting another definition.

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%, so the baseline is 3, but the description adds real decision guidance: set routingEngine only when a user requests a release or to retry the release named in layout.requestedRoutingEngine, and take expectedRevision from get_generation or get_board. It also constrains requestId to identical retries, which the schema alone states less pointedly in context.

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 ('Starts one durable layout job for boardRef at expectedRevision and waits for it') plus the return shapes (completed with boardRevision, or queued/running with pollAfterSeconds). It explicitly separates itself from siblings: create_board and update_board start their own layout jobs, get_generation reads status, and check_board_layout verifies the result.

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 explicit trigger conditions ('after a failed or cancelled layout, after layoutNotStarted, or for a user-requested regeneration') and explicit exclusions ('do not regenerate to inspect progress'). It also names the alternative to use for progress (get_generation) and for verification (check_board_layout).

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.