Skip to main content
Glama

Check a routed KiCad board against datasheet layout rules

datasheetvend_check_pcb_layout
Read-onlyIdempotent

Measure a routed KiCad board (.kicad_pcb text, KiCad 6 or later) against layout rules YOU give, taken from each part's datasheet: decoupling (nearest supply-to-ground capacitor to a supply pad, centre to centre), thermal_vias (vias inside a pad's outline on its net), keepouts (tracks, vias, pads and zone outlines inside an area around a part or a rectangle), differential_pairs (routed length of each net, skew, width changes, via counts), track_widths (narrowest track on a net) and pad_geometry (a footprint's pad sizes against the datasheet's recommended land). The tool has NO rules or limits of its own: every limit is your number and the measured value is returned beside it. It does NOT measure impedance, copper inside zone fills, or anything you did not ask for; these are listed in not_measured. A rule that cannot be evaluated (part or net not on the board) is not_checkable, never a pass. Free with a DatasheetVend API key (no credits), no model call, reads no account data, stores nothing.

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": {
      "kicad_pcb": "<kicad_pcb>",
      "rules": "<rules>"
    },
    "name": "datasheetvend_check_pcb_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesYesThe rules to check. Give at least one.
kicad_pcbYesThe whole .kicad_pcb file as text. It starts with '(kicad_pcb'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive, and the description adds value beyond them: cost and auth ('free with a DatasheetVend API key, no credits'), no model call, no account data read, nothing stored, plus the critical failure semantics that an unevaluable rule is 'not_checkable, never a pass' and that skipped measurements surface in not_measured. That directly prevents misreading results as passes.

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 verb, resource, and format, followed by the rule taxonomy, then exclusions, then cost/privacy. Dense but every clause carries information; the long parenthetical rule list makes the single paragraph heavy, though nothing is redundant.

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?

No output schema exists, yet the description implicitly specifies the response model: measured value beside the limit, not_measured for out-of-scope items, not_checkable for unevaluable rules. Combined with the format and version constraints on the input, an agent has everything needed to call and interpret this tool.

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 baseline is 3, but the description goes further by defining how each rule is measured — decoupling as nearest supply-to-ground capacitor centre-to-centre, thermal_vias as vias inside the pad outline on its net, differential_pairs as length/skew/width-change/via counts — which the schema alone does not convey. It also establishes that the measured value is returned beside the caller's limit, which is meaning the schema cannot express.

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 ('Measure a routed KiCad board') plus the exact input format constraint (.kicad_pcb text, KiCad 6 or later), then enumerates all six rule families with their measurement definitions. An agent can distinguish it from datasheetvend_get_layout_rules or datasheetvend_crosscheck_netlist 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 Guidelines4/5

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

Makes clear that rules must come from the user/datasheet ('layout rules YOU give', 'The tool has NO rules or limits of its own'), and gives explicit scope exclusions (no impedance, no copper inside zone fills, nothing unasked). It does not name sibling alternatives such as datasheetvend_get_layout_rules for obtaining rules, so routing between tools is still left to inference.

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