Skip to main content
Glama

bom_read

Read-only

Reads multiple KiCad netlist, schematic, or CSV BOM sources and consolidates them into grouped purchase lines with needed quantities, spares, and excluded parts.

Instructions

Read one or more BOM sources and consolidate them into purchase lines.

Args: files: [{"path": "~/Projects/x/board.net", "boards": 2, "label": "main"}]. Supported: KiCad netlist (.net), KiCad schematic (.kicad_sch, exported with kicad-cli), CSV BOM. "boards" multiplies quantities (default 1). spare_policy: "default" (extra for small/losable parts) or "none".

Lines are grouped by MPN, else TME symbol, else value+package. Each line has need (= parts on the boards), spares and suggested_qty. Test points, pads, mounting holes and DNP parts are listed under "excluded" - check them.

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": {
      "files": "<files>"
    },
    "name": "bom_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes
spare_policyNodefault

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered; the description adds real substance beyond that — supported input formats, the grouping precedence (MPN, then TME symbol, then value+package), the per-line need/spares/suggested_qty breakdown, and which part types land under 'excluded'. It stops short of describing failure behavior for unsupported or malformed files.

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 purpose is front-loaded in one sentence, followed by a compact Args block and an output-shape paragraph; each section carries distinct information. The docstring formatting is slightly verbose but no sentence is filler.

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?

With no output schema, the description correctly compensates by explaining the returned structure (grouped lines with need, spares, suggested_qty, plus an 'excluded' list). It is nearly complete for a two-parameter read tool; only the meaning of 'label' and error handling are missing.

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 0%, so the description must carry the load, and it largely does: it gives a concrete example of the files array with path, boards (quantity multiplier, default 1) and label, lists accepted file types, and enumerates spare_policy values 'default' and 'none'. The 'label' key's effect and any other allowed object keys remain unexplained.

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 first sentence gives a specific verb and resource: read BOM sources and consolidate them into purchase lines. That is clearly distinct from inventory/TME lookup siblings, though it never names an alternative such as inv_check_bom to sharpen 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 Guidelines3/5

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

Usage is implied by the supported-format list (KiCad netlist, exported .kicad_sch, CSV BOM) and by the note to 'check' excluded items, but there is no explicit when-to-use/when-not statement or comparison to the sibling tools that also touch BOMs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.