Skip to main content
Glama

Autonomous 0-DRC PCB Routing Foundry & Hardware MCP Server

Run Pre-Flight CAD Doctor & Instant Tier Quote

calligraphy_preflight_audit
Read-onlyIdempotent

Run a free $0 read-only Pre-Flight CAD Doctor audit on a PCB (.kicad_pcb, .dsn, .ato, .tsx, or sample_id) and return a binding NRE quote without launching a billable job. Call before calligraphy_compile_board to verify outline, overlaps, and effective SKU pricing. Returns JSON effective_sku, final_price_usd, and pad counts. Example: sample_id='2l_rp2040', requested_sku='vibe_micro'.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sample_id": "2l_rp2040",
      "requested_sku": "vibe_micro"
    },
    "name": "calligraphy_preflight_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNoOriginal CAD filename with extension used to select parser.board.kicad_pcb
pcb_textNoRaw UTF-8 CAD source text (.kicad_pcb, .dsn, .ato, .tsx).
sample_idNoBuilt-in demo board ID ('2l_rp2040', '2l_stickhub', or '4l_carrier').
upload_b64NoBase64-encoded binary CAD file or multi-file .zip project archive.
target_netsNoOptional list of specific net names for Rev-B ECO reroutes.
project_pathNoLocal workstation path to CAD file (STDIO) or sample_id.
requested_skuNoTarget service tier SKU (vibe_micro, basic_2l, route_3d, turnkey_full).route_3d
rush_deliveryNoAdd optional +35% Priority Enclave Rush turnaround queue surcharge.
customer_emailNoEngineer contact email for ECO license matching and compliance.agent@customer.io
include_eco_passNoAdd optional +50% 30-Day Unlimited ECO Re-Spin License surcharge.
preserve_existing_copperNoLock existing routed copper for surgical Rev-B ECO partial reroutes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed22 schema fields changed
    • changedInput schema / properties / customer_email / description
      Previous value: -"Engineering contact email address used to check active 30-day ECO re-spin licenses and regional compliance. Example: 'hw@company.io'."New value: +"Engineer contact email for ECO license matching and compliance."
    • changedInput schema / properties / customer_email / examples
      Previous value: -[
      -  "agent@customer.io",
      -  "hw@company.io"
      -]New value: +[
      +  "hw@company.io"
      +]
    • changedInput schema / properties / filename / description
      Previous value: -"Original CAD filename with extension (.kicad_pcb, .dsn, or .zip) used to select the parser. Example: 'sensor_node.kicad_pcb'."New value: +"Original CAD filename with extension used to select parser."
    • changedInput schema / properties / filename / examples
      Previous value: -[
      -  "board.kicad_pcb",
      -  "controller_4l.kicad_pcb"
      -]New value: +[
      +  "board.kicad_pcb"
      +]
    • changedInput schema / properties / include_eco_pass / description
      Previous value: -"When true, adds the optional +50% 30-Day Unlimited ECO Re-Spin License surcharge for 2-layer Maker Studio boards."New value: +"Add optional +50% 30-Day Unlimited ECO Re-Spin License surcharge."
    • changedInput schema / properties / include_eco_pass / examples
      Previous value: -[
      -  false,
      -  true
      -]New value: +[
      +  false
      +]
    • changedInput schema / properties / pcb_text / description
      Previous value: -"Raw UTF-8 CAD source text (.kicad_pcb S-expression, Specctra .dsn, atopile .ato, or tscircuit .tsx) to inspect and quote."New value: +"Raw UTF-8 CAD source text (.kicad_pcb, .dsn, .ato, .tsx)."
    • changedInput schema / properties / pcb_text / examples
      Previous value: -[
      -  "(kicad_pcb (version 20240108) (generator \"pcbnew\") ...)"
      -]New value: +[
      +  "(kicad_pcb (version 20240108))"
      +]
    • changedInput schema / properties / preserve_existing_copper / description
      Previous value: -"When true, locks and preserves existing pre-routed copper traces and vias while surgically routing only unrouted or target_nets openings during Rev-B ECO layout updates."New value: +"Lock existing routed copper for surgical Rev-B ECO partial reroutes."
    • changedInput schema / properties / preserve_existing_copper / examples
      Previous value: -[
      -  false,
      -  true
      -]New value: +[
      +  false
      +]
    • changedInput schema / properties / project_path / description
      Previous value: -"Local workstation path to a .kicad_pcb or .dsn file (supported in local STDIO mode) or a built-in sample_id."New value: +"Local workstation path to CAD file (STDIO) or sample_id."
    • changedInput schema / properties / project_path / examples
      Previous value: -[
      -  "2l_rp2040",
      -  "hardware/board.kicad_pcb"
      -]New value: +[
      +  "board.kicad_pcb"
      +]
    • changedInput schema / properties / requested_sku / description
      Previous value: -"Requested service tier SKU: 'vibe_micro' ($149 2L <=150 pads), 'basic_2l' ($295 2L <=250 pads), 'dfm_fix' (post-route DFM repair), 'route_3d' ($995 4L commercial), or 'turnkey_full' ($1,495)."New value: +"Target service tier SKU (vibe_micro, basic_2l, route_3d, turnkey_full)."
    • changedInput schema / properties / requested_sku / examples
      Previous value: -[
      -  "vibe_micro",
      -  "basic_2l",
      -  "route_3d"
      -]New value: +[
      +  "vibe_micro"
      +]
    • changedInput schema / properties / rush_delivery / description
      Previous value: -"When true, adds the optional +35% Priority Enclave Rush turnaround surcharge (<45-minute priority queue)."New value: +"Add optional +35% Priority Enclave Rush turnaround queue surcharge."
    • changedInput schema / properties / rush_delivery / examples
      Previous value: -[
      -  false,
      -  true
      -]New value: +[
      +  false
      +]
    • changedInput schema / properties / sample_id / description
      Previous value: -"Built-in demo board identifier ('2l_rp2040', '2l_stickhub', or '4l_carrier') for instant evaluation when no local CAD file is supplied."New value: +"Built-in demo board ID ('2l_rp2040', '2l_stickhub', or '4l_carrier')."
    • changedInput schema / properties / sample_id / examples
      Previous value: -[
      -  "2l_rp2040",
      -  "2l_stickhub",
      -  "4l_carrier"
      -]New value: +[
      +  "2l_rp2040"
      +]
    • changedInput schema / properties / target_nets / description
      Previous value: -"Optional list of specific net names (e.g., ['/I2C_SDA', '/I2C_SCL', 'USB_DP', 'USB_DM']) for surgical Rev-B ECO partial reroutes; empty array routes all unrouted nets."New value: +"Optional list of specific net names for Rev-B ECO reroutes."
    • changedInput schema / properties / target_nets / examples
      Previous value: -[
      -  [
      -    "/I2C_SDA",
      -    "/I2C_SCL"
      -  ],
      -  [
      -    "USB_DP",
      -    "USB_DM"
      -  ]
      -]New value: +[
      +  [
      +    "USB_DP",
      +    "USB_DM"
      +  ]
      +]
    • changedInput schema / properties / upload_b64 / description
      Previous value: -"Standard Base64-encoded binary payload of a .kicad_pcb, .dsn, or multi-file .zip project archive."New value: +"Base64-encoded binary CAD file or multi-file .zip project archive."
    • changedInput schema / properties / upload_b64 / examples
      Previous value: -[
      -  "KGtpY2FkX3BjYiAodmVyc2lvbiAyMDI0MDEwOCkp"
      -]New value: +[
      +  "KGtpY2FkX3BjYik="
      +]
  2. Changed11 schema fields changed
    • addedInput schema / properties / customer_email / examples
      Added value: +[
      +  "agent@customer.io",
      +  "hw@company.io"
      +]
    • addedInput schema / properties / filename / examples
      Added value: +[
      +  "board.kicad_pcb",
      +  "controller_4l.kicad_pcb"
      +]
    • addedInput schema / properties / include_eco_pass / examples
      Added value: +[
      +  false,
      +  true
      +]
    • addedInput schema / properties / pcb_text / examples
      Added value: +[
      +  "(kicad_pcb (version 20240108) (generator \"pcbnew\") ...)"
      +]
    • addedInput schema / properties / preserve_existing_copper
      Added value: +{
      +  "default": false,
      +  "description": "When true, locks and preserves existing pre-routed copper traces and vias while surgically routing only unrouted or target_nets openings during Rev-B ECO layout updates.",
      +  "examples": [
      +    false,
      +    true
      +  ],
      +  "type": "boolean"
      +}
    • addedInput schema / properties / project_path / examples
      Added value: +[
      +  "2l_rp2040",
      +  "hardware/board.kicad_pcb"
      +]
    • addedInput schema / properties / requested_sku / examples
      Added value: +[
      +  "vibe_micro",
      +  "basic_2l",
      +  "route_3d"
      +]
    • addedInput schema / properties / rush_delivery / examples
      Added value: +[
      +  false,
      +  true
      +]
    • addedInput schema / properties / sample_id / examples
      Added value: +[
      +  "2l_rp2040",
      +  "2l_stickhub",
      +  "4l_carrier"
      +]
    • addedInput schema / properties / target_nets
      Added value: +{
      +  "default": [],
      +  "description": "Optional list of specific net names (e.g., ['/I2C_SDA', '/I2C_SCL', 'USB_DP', 'USB_DM']) for surgical Rev-B ECO partial reroutes; empty array routes all unrouted nets.",
      +  "examples": [
      +    [
      +      "/I2C_SDA",
      +      "/I2C_SCL"
      +    ],
      +    [
      +      "USB_DP",
      +      "USB_DM"
      +    ]
      +  ],
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / upload_b64 / examples
      Added value: +[
      +  "KGtpY2FkX3BjYiAodmVyc2lvbiAyMDI0MDEwOCkp"
      +]
  3. Changed10 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / customer_email / description
      Previous value: -"Engineer email."New value: +"Engineering contact email address used to check active 30-day ECO re-spin licenses and regional compliance. Example: 'hw@company.io'."
    • changedInput schema / properties / filename / description
      Previous value: -"CAD filename."New value: +"Original CAD filename with extension (.kicad_pcb, .dsn, or .zip) used to select the parser. Example: 'sensor_node.kicad_pcb'."
    • changedInput schema / properties / include_eco_pass / description
      Previous value: -"+50% 30-Day ECO Pass."New value: +"When true, adds the optional +50% 30-Day Unlimited ECO Re-Spin License surcharge for 2-layer Maker Studio boards."
    • changedInput schema / properties / pcb_text / description
      Previous value: -"Raw CAD text (.kicad_pcb, .dsn, .ato, .tsx)."New value: +"Raw UTF-8 CAD source text (.kicad_pcb S-expression, Specctra .dsn, atopile .ato, or tscircuit .tsx) to inspect and quote."
    • changedInput schema / properties / project_path / description
      Previous value: -"Local path or sample ID."New value: +"Local workstation path to a .kicad_pcb or .dsn file (supported in local STDIO mode) or a built-in sample_id."
    • changedInput schema / properties / requested_sku / description
      Previous value: -"Tier SKU."New value: +"Requested service tier SKU: 'vibe_micro' ($149 2L <=150 pads), 'basic_2l' ($295 2L <=250 pads), 'dfm_fix' (post-route DFM repair), 'route_3d' ($995 4L commercial), or 'turnkey_full' ($1,495)."
    • changedInput schema / properties / rush_delivery / description
      Previous value: -"+35% Rush Turnaround."New value: +"When true, adds the optional +35% Priority Enclave Rush turnaround surcharge (<45-minute priority queue)."
    • changedInput schema / properties / sample_id / description
      Previous value: -"Demo board ID ('2l_rp2040', '2l_stickhub', '4l_carrier')."New value: +"Built-in demo board identifier ('2l_rp2040', '2l_stickhub', or '4l_carrier') for instant evaluation when no local CAD file is supplied."
    • changedInput schema / properties / upload_b64 / description
      Previous value: -"Base64 CAD or .zip payload."New value: +"Standard Base64-encoded binary payload of a .kicad_pcb, .dsn, or multi-file .zip project archive."
  4. Changed11 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "customer_email": "eng@hardware.io",
      -    "requested_sku": "vibe_micro",
      -    "sample_id": "2l_rp2040"
      -  }
      -]New value: +[
      +  {
      +    "requested_sku": "vibe_micro",
      +    "sample_id": "2l_rp2040"
      +  }
      +]
    • removedInput schema / properties / customer_email / examples
      Removed value: -[
      -  "eng@hardware.io"
      -]
    • removedInput schema / properties / filename / examples
      Removed value: -[
      -  "board.kicad_pcb"
      -]
    • removedInput schema / properties / include_eco_pass / examples
      Removed value: -[
      -  false
      -]
    • removedInput schema / properties / pcb_text / examples
      Removed value: -[
      -  "(kicad_pcb (version 20240108))"
      -]
    • removedInput schema / properties / project_path / examples
      Removed value: -[
      -  "2l_rp2040"
      -]
    • removedInput schema / properties / requested_sku / examples
      Removed value: -[
      -  "vibe_micro"
      -]
    • removedInput schema / properties / rush_delivery / examples
      Removed value: -[
      -  false
      -]
    • changedInput schema / properties / sample_id / description
      Previous value: -"Sample ID ('2l_rp2040', '2l_stickhub', '4l_carrier')."New value: +"Demo board ID ('2l_rp2040', '2l_stickhub', '4l_carrier')."
    • removedInput schema / properties / sample_id / examples
      Removed value: -[
      -  "2l_rp2040"
      -]
    • removedInput schema / properties / upload_b64 / examples
      Removed value: -[
      -  "UEsDBBQAAAAIA..."
      -]
  5. Changed19 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "customer_email": "eng@hardware.io",
      +    "requested_sku": "vibe_micro",
      +    "sample_id": "2l_rp2040"
      +  }
      +]
    • changedInput schema / properties / customer_email / description
      Previous value: -"Engineer email for 30-day ECO license matching"New value: +"Engineer email."
    • addedInput schema / properties / customer_email / examples
      Added value: +[
      +  "eng@hardware.io"
      +]
    • changedInput schema / properties / filename / description
      Previous value: -"Uploaded CAD filename (e.g. 'board.kicad_pcb', 'design.dsn', 'project.zip')"New value: +"CAD filename."
    • addedInput schema / properties / filename / examples
      Added value: +[
      +  "board.kicad_pcb"
      +]
    • changedInput schema / properties / include_eco_pass / description
      Previous value: -"+50% 30-Day Unlimited ECO Re-Spin Pass"New value: +"+50% 30-Day ECO Pass."
    • addedInput schema / properties / include_eco_pass / examples
      Added value: +[
      +  false
      +]
    • changedInput schema / properties / pcb_text / description
      Previous value: -"Raw CAD file contents (.kicad_pcb, .dsn, .ato, .tsx, .xml) for remote HTTP MCP calls"New value: +"Raw CAD text (.kicad_pcb, .dsn, .ato, .tsx)."
    • addedInput schema / properties / pcb_text / examples
      Added value: +[
      +  "(kicad_pcb (version 20240108))"
      +]
    • changedInput schema / properties / project_path / description
      Previous value: -"Local stdio CLI path or built-in sample ID ('2l_rp2040', '2l_stickhub', '4l_carrier'). For remote HTTP MCP, read local files and pass 'pcb_text' or 'upload_b64' instead."New value: +"Local path or sample ID."
    • addedInput schema / properties / project_path / examples
      Added value: +[
      +  "2l_rp2040"
      +]
    • changedInput schema / properties / requested_sku / description
      Previous value: -"Requested synthesis service tier SKU ('vibe_micro' for <=150 pads 2L, 'basic_2l' for <=250 pads 2L, or 'route_3d' for 4L+ multi-layer)"New value: +"Tier SKU."
    • addedInput schema / properties / requested_sku / examples
      Added value: +[
      +  "vibe_micro"
      +]
    • changedInput schema / properties / rush_delivery / description
      Previous value: -"+35% Instant <45m Enclave Rush Turnaround"New value: +"+35% Rush Turnaround."
    • addedInput schema / properties / rush_delivery / examples
      Added value: +[
      +  false
      +]
    • changedInput schema / properties / sample_id / description
      Previous value: -"Optional built-in sample board ID ('2l_rp2040', '2l_stickhub', '4l_carrier')"New value: +"Sample ID ('2l_rp2040', '2l_stickhub', '4l_carrier')."
    • addedInput schema / properties / sample_id / examples
      Added value: +[
      +  "2l_rp2040"
      +]
    • changedInput schema / properties / upload_b64 / description
      Previous value: -"Base64-encoded CAD file or .zip bundle for remote HTTP MCP calls"New value: +"Base64 CAD or .zip payload."
    • addedInput schema / properties / upload_b64 / examples
      Added value: +[
      +  "UEsDBBQAAAAIA..."
      +]
  6. Changed2 schema fields changed
    • addedInput schema / properties / filename / description
      Added value: +"Uploaded CAD filename (e.g. 'board.kicad_pcb', 'design.dsn', 'project.zip')"
    • addedInput schema / properties / requested_sku / description
      Added value: +"Requested synthesis service tier SKU ('vibe_micro' for <=150 pads 2L, 'basic_2l' for <=250 pads 2L, or 'route_3d' for 4L+ multi-layer)"
  7. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description still adds material context: zero cost, no billable job is launched, the returned quote is described as binding, and the concrete response fields (effective_sku, final_price_usd, pad counts) are named. It does not say what happens on unparseable input or whether a quote expires.

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?

Three compact sentences, front-loaded with the core action and cost, then the sequencing rule, then the return contract and a worked example. Dense but no sentence is filler; the '$0 free' pairing is mildly redundant.

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 an 11-parameter, zero-required tool with no output schema, the description does well to name the return fields and the call ordering. The significant remaining gap is that it never disambiguates the five mutually substitutable input paths (filename/pcb_text/sample_id/upload_b64/project_path) or states which is required, leaving an agent to infer precedence from the schema alone.

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 description coverage is 100%, so every parameter including the SKU enum, rush surcharge, ECO pass and preserve_existing_copper is already documented. The description only echoes the file-extension list, one sample_id value and one SKU value as an example, adding no semantics the schema lacks. Baseline 3 applies.

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 (run an audit) and resource (PCB CAD source in five named formats), and explicitly frames the result as a non-billable, read-only pre-flight check plus a binding NRE quote. This distinguishes it cleanly from the immediately adjacent sibling calligraphy_compile_board, which it names.

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

Usage Guidelines4/5

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

Gives explicit sequencing guidance: 'Call before calligraphy_compile_board' and states the goal of that ordering (verify outline, overlaps, effective SKU pricing). It does not explain when an agent should prefer the free audit over the DFM/stackup audit siblings, nor which of the five input modalities to pick, but the primary routing decision is covered.

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.