Skip to main content
Glama

EasyGerber: AI PCB design, layout, and routing

Export board files

export_board

Creates a stable private download of a saved board as a manufacturing ZIP or editable .egb project backup. Pass the latest saved revision as expectedRevision. Use format egb directly for project backups, including empty or incomplete projects and unapplied geometry or electrical changes; no layout generation or check is required. Manufacturing ZIPs require a current saved layout with applied electrical requirements; generate and wait for completion when needed, then read the new revision. New exports require current board access. Issued download links have no automatic expiry and retain this exact export after board edits, deletion, guest claim or cleanup. Only explicit download-link revocation or deletion of the exported file ends access. Give the user the download link from url. If saveToAccount is present, offer its private preview link separately so the user can find the board in My Boards later. Saving is optional. Keep each complete link unchanged, including its fragment.

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>",
      "format": "<format>",
      "boardRef": "<boardRef>"
    },
    "name": "export_board"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatYesmanufacturing: ZIP with Gerber, drill, BOM and placement files. egb: editable EasyGerber board file.
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, from the last save or get_board. A mismatch returns revision_conflict; read the board again before exporting.

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
    • addedOutput schema / properties / data / properties / saveToAccount
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "label": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "Private preview where the user can choose to save this board to My Boards. Keep the complete link in the originating conversation.",
      +      "format": "uri",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "label",
      +    "url"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / expectedRevision / description
      Previous value: -"Revision from get_board. A mismatch returns revision_conflict; read the board again before exporting."New value: +"Latest saved revision, from the last save or get_board. A mismatch returns revision_conflict; read the board again before exporting."
  5. Changed1 schema field changed
    • removedInput schema / properties / changeNote
      Removed value: -{
      -  "description": "Description of modifications, required when get_board returns inherited licensing. Added to the exported license notices.",
      -  "maxLength": 1000,
      -  "minLength": 1,
      -  "type": "string"
      -}
  6. Changed6 schema fields changed
    • removedInput schema / properties / boardId
      Removed value: -{
      -  "description": "Accessible saved board ID from get_board, create_board, or list_boards.",
      -  "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",
      -  "format"
      -]New value: +[
      +  "expectedRevision",
      +  "format",
      +  "boardRef"
      +]
    • addedOutput schema / properties / data / properties / boardRef
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / data / required
      Previous value: -[
      -  "name",
      -  "mimeType",
      -  "url",
      -  "expiresAt",
      -  "boardRevision"
      -]New value: +[
      +  "name",
      +  "mimeType",
      +  "url",
      +  "expiresAt",
      +  "boardRevision",
      +  "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. Changed4 schema fields changed
    • addedOutput schema / properties / data / properties / expiresAt / anyOf
      Added value: +[
      +  {
      +    "format": "date-time",
      +    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / data / properties / expiresAt / format
      Removed value: -"date-time"
    • removedOutput schema / properties / data / properties / expiresAt / pattern
      Removed value: -"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
    • removedOutput schema / properties / data / properties / expiresAt / type
      Removed value: -"string"
  9. Changed4 schema fields changed
    • addedInput schema / properties / boardId / description
      Added value: +"Accessible saved board ID from get_board, create_board, or list_boards."
    • addedInput schema / properties / changeNote / description
      Added value: +"Description of modifications, required when get_board returns inherited licensing. Added to the exported license notices."
    • addedInput schema / properties / expectedRevision / description
      Added value: +"Revision from get_board. A mismatch returns revision_conflict; read the board again before exporting."
    • addedInput schema / properties / format / description
      Added value: +"manufacturing: ZIP with Gerber, drill, BOM and placement files. egb: editable EasyGerber board file."
  10. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare this is not read-only, not destructive, and not idempotent; the description goes well beyond that by disclosing that links never auto-expire, survive board edits, deletion, guest claim and cleanup, and end only via explicit revocation or file deletion. It also surfaces the revision_conflict failure mode and the distinction between the download link and the optional private preview link.

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-loads the core action and the two formats before the finer rules, and nearly every sentence carries operational weight. The link-permanence and 'keep each complete link unchanged, including its fragment' instructions are necessary but make the tail denser than the opening; some wording could be tightened without information loss.

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?

Despite a non-trivial mutation-style tool with a three-parameter contract, the description covers prerequisites, failure handling, retention guarantees, and which returned link to hand to the user. With an output schema present it correctly does not attempt to enumerate return fields, leaving it complete without duplication.

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 100% and the schema already documents format enum values, the expectedRevision conflict behavior, and boardRef privacy rules, so the description's parameter content is largely restatement ('Pass the latest saved revision as expectedRevision'). It adds the sequencing nuance for obtaining a fresh revision before manufacturing exports, but no syntax or format detail beyond 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 and resource — 'Creates a stable private download of a saved board' — and names both output artifacts (manufacturing ZIP, editable .egb project backup). It also implicitly separates itself from generate_layout ('no layout generation or check is required') and from the account-saving sibling ('Saving is optional'), so an agent can place it among siblings without opening the schema.

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 when-to-use routing for each format: egb for project backups including empty/incomplete projects and unapplied changes, manufacturing only when a current saved layout with applied electrical requirements exists. It further states the prerequisite action path (generate and wait, then read the new revision) and the access precondition ('New exports require current board access'), which is actionable usage guidance rather than implied context.

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.