Skip to main content
Glama

inv_check_bom

Read-only

Checks BOM lines against local stock, returns per-line matches and available quantities, and calculates suggested purchase amounts to avoid buying parts you already have.

Instructions

Check BOM lines (as returned by bom_read) against stock.

Per line: matches (exact via TME symbol/MPN; generic value+package lines only get search "candidates" that must be confirmed), available, and suggested_buy: 0 if available >= need, else need - available + spares.

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": {
      "lines": "<lines>"
    },
    "name": "inv_check_bom"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYes

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 only declare readOnlyHint and openWorldHint; the description adds real behavioral detail beyond that: exact matching via TME symbol/MPN, generic value+package lines yielding only search 'candidates' that must be confirmed, and the suggested_buy formula (0 if available >= need, else need - available + spares). The confirmation requirement for generic lines is a meaningful caveat the annotations do not 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?

The definition is short and front-loaded: the first clause states the action, and the 'Per line:' breakdown efficiently enumerates the computed fields. No filler sentences, though the formula phrasing is slightly dense.

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 read-only check tool with no output schema, the description covers the matching semantics and the per-line result fields (matches, available, suggested_buy), which is what an agent needs. The remaining gap is the exact field names/types expected inside each 'lines' object, which neither the schema nor the description fully pins down.

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% and the single 'lines' parameter is an untyped array of free-form objects, so the schema carries essentially no meaning. The description compensates by describing what a line must contain (symbol/MPN for exact matches, value+package for generic ones) and by referencing 'need' and 'spares' quantities used in the buy calculation.

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 definition states a specific verb and resource ('Check BOM lines ... against stock') and ties the input to a named sibling ('as returned by bom_read'), so an agent can tell it apart from inventory lookup tools like inv_find or tme_prices_stock. It stops short of an explicit contrast statement with those siblings.

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?

The phrase 'as returned by bom_read' implies the chaining prerequisite (read the BOM first, then check it), which is useful workflow context. However, there is no explicit when-to-use/when-not guidance and no named alternative for other inventory-checking scenarios, so usage is only implied.

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