Skip to main content
Glama

Extract complete KiCad CAD bundle

datasheetvend_extract_kicad_bundle
Read-onlyIdempotent

Generate a KiCad footprint (.kicad_mod) and schematic symbol (.kicad_sym) from a datasheet in one call. Both files are loaded with kicad-cli where it is installed (a file-format check, not a DRC/ERC) and passed through the same deterministic copper, courtyard, pin-1 and pad-placement checks the dashboard uses. bundle_status "completed" means both files were independently proven against this document; "needs_review" means a file was produced (possibly from the KiCad library or JEDEC/IPC-7351B math instead of this document — see footprint_provenance/symbol_provenance) without that proof; "cannot_extract" means nothing usable was produced, and the credits for this call are refunded automatically (status FAILED).

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": {
      "documentPath": "<documentPath>"
    },
    "name": "datasheetvend_extract_kicad_bundle"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNameNoOptional part number / MPN to disambiguate package variants.
documentPathYeshttps:// URL to the datasheet PDF. The remote /api/mcp endpoint accepts ONLY https:// URLs (it downloads them); a local filesystem path works solely in local stdio mode (npm run mcp:serve)..
packageSelectionNoOptional package/variant (e.g. 'LQFP48', 'SOIC8', 'QFN32').

Output Schema

NameRequiredDescriptionDefault
filesYes
inputsYes
reviewYes
statusYesThe pipeline's own run status. FAILED means nothing usable was produced and the credits for this call are refunded automatically.
contractYesContract schema identifier: kicad_evidence_v1
warningsYesEngineering warnings
requestedYesExactly what the caller sent, kept distinct from the resolved identity above.
user_reportYesWhat the engineer must check, in the same words as the dashboard, README.txt and API v1: a status line that matches the files (Proven only when the readiness verdict proves the run), per-file state, and one to_check entry per code. review.reasons lists the same to_check lines. technical_details_count counts the other notes, none of which needs action.
bundle_statusYescompleted = both requested files were proven against this document. needs_review = a run finished (or a fallback file was attached) without that proof. cannot_extract = nothing usable. null = the pipeline never reached a stage that could compute this.
status_detailYes
human_warningsYes
final_readinessYesThe emit gate's full verdict. null when the pipeline never reached this stage.
package_variantYesResolved package code.
symbol_provenanceYesSet only when this file did NOT come from this document's own extraction (a KiCad-library match or JEDEC/IPC-7351B math instead). null means the file was built from this document.
validation_reportYeskicad-cli file-load result (sym/fp upgrade — a format check, not a DRC).
footprint_provenanceYesSet only when this file did NOT come from this document's own extraction (a KiCad-library match or JEDEC/IPC-7351B math instead). null means the file was built from this document.
manufacturer_part_numberYesResolved by the pipeline's identity resolution — not an echo of the input. See requested.part_name for what was sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / user_report
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "files": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "footprint": {
      +              "type": "string"
      +            },
      +            "symbol": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "symbol",
      +            "footprint"
      +          ],
      +          "type": "object"
      +        },
      +        "human_review_required": {
      +          "type": "boolean"
      +        },
      +        "status_line": {
      +          "type": "string"
      +        },
      +        "technical_details_count": {
      +          "type": "number"
      +        },
      +        "to_check": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "action": {
      +                "type": "string"
      +              },
      +              "code": {
      +                "type": "string"
      +              },
      +              "file": {
      +                "enum": [
      +                  "symbol",
      +                  "footprint",
      +                  "package",
      +                  "bundle"
      +                ],
      +                "type": "string"
      +              },
      +              "level": {
      +                "enum": [
      +                  "blocking",
      +                  "review"
      +                ],
      +                "type": "string"
      +              },
      +              "line": {
      +                "type": "string"
      +              },
      +              "pages": {
      +                "items": {
      +                  "type": "number"
      +                },
      +                "type": "array"
      +              },
      +              "title": {
      +                "type": "string"
      +              },
      +              "why": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "code",
      +              "file",
      +              "level",
      +              "title",
      +              "why",
      +              "action",
      +              "pages",
      +              "line"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "verdict": {
      +          "enum": [
      +            "proven",
      +            "checks_passed",
      +            "draft",
      +            "no_files"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "status_line",
      +        "verdict",
      +        "files",
      +        "to_check",
      +        "technical_details_count",
      +        "human_review_required"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "What the engineer must check, in the same words as the dashboard, README.txt and API v1: a status line that matches the files (Proven only when the readiness verdict proves the run), per-file state, and one to_check entry per code. review.reasons lists the same to_check lines. technical_details_count counts the other notes, none of which needs action."
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "contract",
      -  "manufacturer_part_number",
      -  "package_variant",
      -  "files",
      -  "validation_report",
      -  "review",
      -  "warnings",
      -  "status",
      -  "bundle_status",
      -  "requested",
      -  "inputs",
      -  "status_detail",
      -  "human_warnings",
      -  "footprint_provenance",
      -  "symbol_provenance",
      -  "final_readiness"
      -]New value: +[
      +  "contract",
      +  "manufacturer_part_number",
      +  "package_variant",
      +  "files",
      +  "validation_report",
      +  "review",
      +  "warnings",
      +  "status",
      +  "bundle_status",
      +  "requested",
      +  "inputs",
      +  "status_detail",
      +  "human_warnings",
      +  "footprint_provenance",
      +  "symbol_provenance",
      +  "final_readiness",
      +  "user_report"
      +]
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), and the description still adds substantial non-obvious behavior: kicad-cli loading is described as a file-format check and explicitly 'not a DRC/ERC', deterministic copper/courtyard/pin-1/pad checks are applied, provenance can fall back to the KiCad library or JEDEC/IPC-7351B math, and credits are auto-refunded on 'cannot_extract'. That is far more than the annotations convey.

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?

It is front-loaded with the action and outputs, and every sentence carries information. The final status sentence is long and parenthesis-heavy ('possibly from the KiCad library or JEDEC/IPC-7351B math instead of this document — see footprint_provenance/symbol_provenance'), which makes it dense but not wasteful.

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 two-artifact generation call with built-in validation and billing, the description covers outcomes, validation depth, and refund behavior, and an output schema exists so return values need no explanation. The main gap is operational context such as expected runtime and when to prefer the single-file siblings.

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%, so documentPath, partName, and packageSelection are already documented in the schema, and the description does not elaborate on them. It adds indirect meaning about document reliance and provenance fallbacks, but nothing parameter-specific, so the 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?

The first sentence states a specific verb and two concrete artifacts: 'Generate a KiCad footprint (.kicad_mod) and schematic symbol (.kicad_sym) from a datasheet in one call.' The 'in one call' phrasing implicitly separates it from the single-artifact siblings extract_kicad_footprint and extract_kicad_symbol, so an agent can pick the right tool from the description alone.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the 'in one call' framing suggests using this when both artifacts are wanted, and the bundle_status semantics hint at follow-up handling. But there is no explicit when-to-use, when-not-to-use, or a named alternative (e.g. 'for a footprint only, use extract_kicad_footprint'), so the agent must infer routing.

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