Skip to main content
Glama

Consolidate the BOM to JLCPCB basic parts

consolidate_bom_basic

Move every resistor, capacitor and inductor bought outside JLCPCB's basic library onto an in-stock basic-library part of the same value, package and (capacitors) at least the same voltage rating. Each part outside that library adds a loading fee to a JLCPCB order, usually more than the part. Each swap becomes the line's choice (choose_bom_part with null undoes it); lines with no readable value, no SMD size or no basic part are reported and left alone.

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": {
      "design_id": "<design_id>"
    },
    "name": "consolidate_bom_basic"
  }
}

Input Schema

NameRequiredDescriptionDefault
boardsNoBoards the stock must cover (default 1).
design_idYesThe design id returned by create_design or list_designs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / design_id / pattern
      Removed value: -"^[A-Za-z0-9_-]{8,80}$"
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only say readOnly=false, destructive=false, openWorld=true; the description adds what actually changes (each swap becomes that line's selected part), that the effect is reversible through choose_bom_part with null, and exactly which lines are skipped and merely reported. That is meaningful mutation-behavior disclosure well beyond the annotation hints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences: action and matching rule first, economic rationale second, side effects and skip conditions last. The fee sentence is short but earns its place by justifying use, and nothing is redundant with the title or schema.

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 design-mutating BOM pass with two parameters and no output schema, the definition covers what changes, what is reversible, and what gets reported back. It could say a bit more about the shape of that skipped-line report or prerequisites (e.g., needing a BOM already present), but an agent has enough to invoke it safely.

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%, and both parameters (design_id, boards) are documented in the schema itself. The description adds no extra meaning about design_id or how the boards count interacts with matching/reservation behavior, so the schema carries the burden and 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 description opens with a precise verb+object: replace non-basic resistors, capacitors and inductors with basic-library equivalents on matching value/package/voltage. That scope is unmistakable against siblings like get_bom, clean_board or choose_bom_part, which neither substitute parts nor operate on the whole BOM.

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?

It gives clear motivating context for when to use it (each non-library part adds a loading fee larger than the part itself) and states the exclusion cases (lines with no readable value, no SMD size, or no basic equivalent are reported and left untouched). It also documents the rollback path via choose_bom_part with null, though it does not explicitly name an alternative consolidation mode.

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