Skip to main content
Glama

Extract KiCad schematic symbol (.kicad_sym)

datasheetvend_extract_kicad_symbol
Read-onlyIdempotent

Write a KiCad schematic symbol library (.kicad_sym) with logical pin groupings (Power, Ground, Reset, Clocks, GPIO, Analog, Bus interfaces) from a datasheet's pinout. Symbol layout is generated from the pin functions the pinout module resolved; there is no IEEE/IEC symbol-drawing standard applied. The emitted file is loaded with kicad-cli (sym upgrade) where it is installed, a file-format check, not a DRC or ERC.

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_symbol"
  }
}

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
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 emitted during generation
kicad_symYesComplete KiCad schematic symbol (.kicad_sym) file content, or null if withheld/not produced.
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.
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",
      -  "kicad_sym",
      -  "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",
      +  "kicad_sym",
      +  "review",
      +  "warnings",
      +  "status",
      +  "bundle_status",
      +  "requested",
      +  "inputs",
      +  "status_detail",
      +  "human_warnings",
      +  "footprint_provenance",
      +  "symbol_provenance",
      +  "final_readiness",
      +  "user_report"
      +]
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety, idempotency and open-world access, yet the description still adds real operational context: no IEEE/IEC drawing standard is applied, layout derives from resolved pin functions, and the kicad-cli 'sym upgrade' pass is only a file-format check rather than DRC/ERC. These caveats set accurate expectations about output fidelity. The 'Write' framing is about emitting an artifact (there is no output-path parameter, and the result is returned per the output schema), so this is consistent with readOnlyHint=true rather than contradictory.

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 sentences, front-loaded with the output artifact and source, then caveats. Every sentence carries information (output format, generation basis, validation scope). Slightly dense phrasing in the middle clause, but no padding.

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?

For a generator tool with an output schema, fully covered parameters and rich annotations, the description supplies what structured fields cannot: the derivation source, the absence of a drawing standard, and the limits of the validation step. An agent knows what it will get and how reliable it is before calling.

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 documentPath (https-only on the remote endpoint), partName and packageSelection are all already documented in the schema. The description adds no syntax, format or interaction detail for these parameters, which is acceptable at full coverage but does not add value.

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 pairs a specific verb and artifact ('Write a KiCad schematic symbol library (.kicad_sym)') with a stated source ('from a datasheet's pinout'), which cleanly separates it from the footprint and bundle siblings by artifact type. It stops short of naming a sibling or stating when to prefer this over the bundle, so it is clear but not maximally differentiating.

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?

Use context is implied through the dependency clause 'from the pin functions the pinout module resolved', which tells the agent this must run after pinout extraction. There is no explicit when-to-use/when-not guidance relative to datasheetvend_extract_kicad_bundle or datasheetvend_extract_kicad_footprint, and no stated prerequisite that the pinout must succeed first.

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