Skip to main content
Glama

price_bom

Read-onlyIdempotent

Calculate DigiKey costs for a bill of materials with packaging per line, line and grand totals, and warnings for missing, out-of-stock, or obsolete parts.

Instructions

Cost a bill of materials on DigiKey: best packaging per line, line totals, grand total, and warnings for missing, out-of-stock or obsolete parts.

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": {
      "items": "<items>"
    },
    "name": "price_bom"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
build_quantityNoNumber of boards; each line quantity is multiplied by this

Output Schema

NameRequiredDescriptionDefault

No arguments

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 readOnly, idempotent, and open-world behavior, so safety is covered. The description adds real behavioral context beyond that: it automatically picks the best packaging per line and reports warnings for missing, out-of-stock, and obsolete parts, which tells an agent how partial failures are surfaced rather than aborting.

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?

A single sentence with no filler; the operation and the DigiKey source are front-loaded and the enumerated outputs follow. Every clause carries information an agent needs.

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?

An output schema exists, so return-value detail is not required, and the description still pre-announces the key return elements and warnings. What is missing is modest: no mention of authentication, rate limits, or how ambiguous part numbers resolve.

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 only 50%, and the uncovered 'items' array is the central input. The description implies per-line costing but says nothing about the line structure, the 100-line cap, or the build_quantity multiplier that the schema documents. It neither compensates for nor contradicts the schema.

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?

Names a specific verb ('cost') and resource ('bill of materials') plus the data source (DigiKey) and the outputs produced (line totals, grand total). A BOM-level costing operation is clearly distinct from single-part siblings like get_price or search_parts, though no sibling is named explicitly.

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 resource: use this when you have multiple parts to price at once rather than one. There is no explicit statement of when to prefer this over get_price or compare_parts, and no guidance on limits or prerequisites.

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