Skip to main content
Glama

Calligraphy EDA MCP Server

Audit Pre-Route Vendor Stackup, 50-Ohm RF & VIPPO Rules

audit_pre_route_rf_and_fab_stackup
Read-onlyIdempotent

Validate multi-layer vendor stackup before routing to compute exact 50-Ohm RF width (mm), 3*H1 top ground-pour pullback (mm), reference-plane corridor half-width, and VIPPO policy. Call before routing BLE, Wi-Fi, LoRa, cellular, or GNSS boards. Accepts H1 (mm), Er, and outer copper (um); returns JSON RF constraints. Example: top_prepreg_h1_mm=0.19, prepreg_er=4.29.

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": {
      "prepreg_er": 4.29,
      "top_prepreg_h1_mm": 0.19
    },
    "name": "audit_pre_route_rf_and_fab_stackup"
  }
}

Input Schema

NameRequiredDescriptionDefault
pcb_textNoOptional raw UTF-8 .kicad_pcb text for board context audit.
prepreg_erNoRelative permittivity Er of the top prepreg dielectric (>= 1.5).
vippo_modeNoVia-in-Pad policy: standard SMT disallow_via_in_paste or IPC-4761 allow_vippo_type_vii.disallow_via_in_paste
project_pathNoOptional local filesystem path to .kicad_pcb file (STDIO mode).
outer_copper_umNoFinished outer copper thickness in micrometers (35.0 = 1 oz).
top_prepreg_h1_mmNoTop prepreg height H1 between F.Cu and In1.Cu (mm).
transmission_line_modeNoRF line mode: isolated_microstrip (3*H1 pullback) or cpwg waveguide.isolated_microstrip

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • changedInput schema / properties / outer_copper_um / description
      Previous value: -"Finished outer copper thickness in micrometers (um, >= 9.0 um). Use 35.0 for 1 oz finished copper or 17.5 for 0.5 oz."New value: +"Finished outer copper thickness in micrometers (35.0 = 1 oz)."
    • changedInput schema / properties / outer_copper_um / examples
      Previous value: -[
      -  35,
      -  17.5
      -]New value: +[
      +  35
      +]
    • changedInput schema / properties / pcb_text / description
      Previous value: -"Optional raw UTF-8 .kicad_pcb S-expression text for board context inspection. Example: '(kicad_pcb (version 20240108) ...)'."New value: +"Optional raw UTF-8 .kicad_pcb text for board context audit."
    • changedInput schema / properties / pcb_text / examples
      Previous value: -[
      -  "(kicad_pcb (version 20240108) (generator \"pcbnew\") ...)"
      -]New value: +[
      +  "(kicad_pcb (version 20240108))"
      +]
    • changedInput schema / properties / prepreg_er / description
      Previous value: -"Relative permittivity (Er / Dk) of the top prepreg dielectric layer (>= 1.5). Example: 4.29 for standard 7628 FR-4."New value: +"Relative permittivity Er of the top prepreg dielectric (>= 1.5)."
    • changedInput schema / properties / prepreg_er / examples
      Previous value: -[
      -  4.29,
      -  3.48
      -]New value: +[
      +  4.29
      +]
    • changedInput schema / properties / project_path / description
      Previous value: -"Optional local filesystem path to the target .kicad_pcb file in local STDIO mode. Example: 'rf_carrier.kicad_pcb'."New value: +"Optional local filesystem path to .kicad_pcb file (STDIO mode)."
    • changedInput schema / properties / project_path / examples
      Previous value: -[
      -  "board.kicad_pcb",
      -  "2l_rp2040"
      -]New value: +[
      +  "board.kicad_pcb"
      +]
    • changedInput schema / properties / top_prepreg_h1_mm / description
      Previous value: -"Outer prepreg dielectric height H1 between F.Cu and In1.Cu in millimeters (mm, >= 0.04 mm). Example: 0.19 for 7628 or 0.10 for 2116 prepreg."New value: +"Top prepreg height H1 between F.Cu and In1.Cu (mm)."
    • changedInput schema / properties / top_prepreg_h1_mm / examples
      Previous value: -[
      -  0.19,
      -  0.1
      -]New value: +[
      +  0.19
      +]
    • changedInput schema / properties / transmission_line_mode / description
      Previous value: -"RF transmission line structure: 'isolated_microstrip' (enforces 3*H1 top ground pour pullback) or 'cpwg' (coplanar waveguide with ground)."New value: +"RF line mode: isolated_microstrip (3*H1 pullback) or cpwg waveguide."
    • changedInput schema / properties / transmission_line_mode / examples
      Previous value: -[
      -  "isolated_microstrip",
      -  "cpwg"
      -]New value: +[
      +  "isolated_microstrip"
      +]
    • changedInput schema / properties / vippo_mode / description
      Previous value: -"Via-in-Pad policy: 'disallow_via_in_paste' (standard SMT fabrication, relocates vias out of solder paste apertures) or 'allow_vippo_type_vii' (resin-filled & capped IPC-4761 Type VII)."New value: +"Via-in-Pad policy: standard SMT disallow_via_in_paste or IPC-4761 allow_vippo_type_vii."
    • changedInput schema / properties / vippo_mode / examples
      Previous value: -[
      -  "disallow_via_in_paste",
      -  "allow_vippo_type_vii"
      -]New value: +[
      +  "disallow_via_in_paste"
      +]
  2. Changed7 schema fields changed
    • addedInput schema / properties / outer_copper_um / examples
      Added value: +[
      +  35,
      +  17.5
      +]
    • addedInput schema / properties / pcb_text / examples
      Added value: +[
      +  "(kicad_pcb (version 20240108) (generator \"pcbnew\") ...)"
      +]
    • addedInput schema / properties / prepreg_er / examples
      Added value: +[
      +  4.29,
      +  3.48
      +]
    • addedInput schema / properties / project_path / examples
      Added value: +[
      +  "board.kicad_pcb",
      +  "2l_rp2040"
      +]
    • addedInput schema / properties / top_prepreg_h1_mm / examples
      Added value: +[
      +  0.19,
      +  0.1
      +]
    • addedInput schema / properties / transmission_line_mode / examples
      Added value: +[
      +  "isolated_microstrip",
      +  "cpwg"
      +]
    • addedInput schema / properties / vippo_mode / examples
      Added value: +[
      +  "disallow_via_in_paste",
      +  "allow_vippo_type_vii"
      +]
  3. Changed8 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / outer_copper_um / description
      Previous value: -"Outer copper (um)."New value: +"Finished outer copper thickness in micrometers (um, >= 9.0 um). Use 35.0 for 1 oz finished copper or 17.5 for 0.5 oz."
    • changedInput schema / properties / pcb_text / description
      Previous value: -"Raw .kicad_pcb S-expression."New value: +"Optional raw UTF-8 .kicad_pcb S-expression text for board context inspection. Example: '(kicad_pcb (version 20240108) ...)'."
    • changedInput schema / properties / prepreg_er / description
      Previous value: -"Prepreg Er."New value: +"Relative permittivity (Er / Dk) of the top prepreg dielectric layer (>= 1.5). Example: 4.29 for standard 7628 FR-4."
    • changedInput schema / properties / project_path / description
      Previous value: -"Path to .kicad_pcb file."New value: +"Optional local filesystem path to the target .kicad_pcb file in local STDIO mode. Example: 'rf_carrier.kicad_pcb'."
    • changedInput schema / properties / top_prepreg_h1_mm / description
      Previous value: -"Top prepreg H1 (mm)."New value: +"Outer prepreg dielectric height H1 between F.Cu and In1.Cu in millimeters (mm, >= 0.04 mm). Example: 0.19 for 7628 or 0.10 for 2116 prepreg."
    • changedInput schema / properties / transmission_line_mode / description
      Previous value: -"RF line mode."New value: +"RF transmission line structure: 'isolated_microstrip' (enforces 3*H1 top ground pour pullback) or 'cpwg' (coplanar waveguide with ground)."
    • changedInput schema / properties / vippo_mode / description
      Previous value: -"VIPPO policy."New value: +"Via-in-Pad policy: 'disallow_via_in_paste' (standard SMT fabrication, relocates vias out of solder paste apertures) or 'allow_vippo_type_vii' (resin-filled & capped IPC-4761 Type VII)."
  4. Changed8 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "prepreg_er": 4.29,
      +    "top_prepreg_h1_mm": 0.19
      +  }
      +]
    • changedInput schema / properties / outer_copper_um / description
      Previous value: -"Finished outer-layer copper thickness in micrometers (35.0 um = 1 oz)"New value: +"Outer copper (um)."
    • changedInput schema / properties / pcb_text / description
      Previous value: -"Raw `.kicad_pcb` S-expression text"New value: +"Raw .kicad_pcb S-expression."
    • changedInput schema / properties / prepreg_er / description
      Previous value: -"Relative permittivity Er of the outer prepreg dielectric"New value: +"Prepreg Er."
    • changedInput schema / properties / project_path / description
      Previous value: -"Local filesystem path to a `.kicad_pcb` file"New value: +"Path to .kicad_pcb file."
    • changedInput schema / properties / top_prepreg_h1_mm / description
      Previous value: -"Top prepreg dielectric height H1 between F.Cu and In1.Cu in mm (e.g. 0.19 mm for standard 4L or 0.10 mm for 7628/2116)"New value: +"Top prepreg H1 (mm)."
    • changedInput schema / properties / transmission_line_mode / description
      Previous value: -"Intended RF transmission-line structure ('isolated_microstrip' requires >= 3*H1 ground pour pullback; 'cpwg' uses coupled side ground pour)"New value: +"RF line mode."
    • changedInput schema / properties / vippo_mode / description
      Previous value: -"Assembly via-in-pad policy ('disallow_via_in_paste' flags vias inside SMD solder-paste lands; 'allow_vippo_type_vii' allows plugged/capped VIPPO vias)"New value: +"VIPPO policy."
  5. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety and repeatability are covered by structured data. The description adds the useful fact that the call is a pre-routing gate that 'returns JSON RF constraints', implying a pure computation. It does not disclose the effect of the optional pcb_text/project_path inputs (board-context audit) or the validity domain of the inputs.

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?

The description front-loads the core purpose and computed outputs, then the invocation trigger, then accepted inputs and an example. Every sentence contributes; only the trailing worked example (which duplicates schema examples) is marginal.

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 7-parameter, all-optional tool with no output schema, the description covers what is computed and when to call it, which is the essential information. The gap is that the two optional file/path inputs described in the schema as a 'board context audit' are never explained in the description, so an agent cannot tell when supplying them changes the result.

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 is already documented in the schema and the baseline is 3. The description restates H1, Er, and outer copper and ties transmission_line_mode implicitly to the '3*H1 ground-pour pullback' output, but adds no format, range, or interaction detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource ('Validate multi-layer vendor stackup before routing') and enumerates the exact outputs it computes (50-Ohm RF width in mm, 3*H1 pullback, reference-plane corridor half-width, VIPPO policy). That is far more concrete than a tautology. It does not, however, distinguish itself from plausible siblings like calculate_pcb_trace_impedance or audit_pcb_dfm_rules, so an agent must infer the boundary.

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?

'Call before routing BLE, Wi-Fi, LoRa, cellular, or GNSS boards' gives a clear, concrete trigger condition tied to the domain. It stops short of explicit when-not guidance or naming an alternative tool for the cases this one does not cover, which keeps it below a 5.

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