Skip to main content
Glama

Choose a BOM offer

choose_bom_part

Pick which offer a BOM line uses: the line's references and a seller part number or MPN from its offer or alternatives in get_bom; null goes back to the automatic pick. Sourcing only: a different component is a circuit change.

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>",
      "refs": "<refs>",
      "part": "<part>"
    },
    "name": "choose_bom_part"
  }
}

Input Schema

NameRequiredDescriptionDefault
partYesSeller part number or MPN from get_bom, or null.
refsYesReferences of the line, e.g. ["C1","C2"].
design_idYesThe design id returned by create_design or list_designs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 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}$"
    • changedInput schema / properties / part / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 80,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / refs / items / maxLength
      Removed value: -20
    • removedInput schema / properties / refs / maxItems
      Removed value: -200
    • removedInput schema / properties / refs / minItems
      Removed value: -1
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, open-world mutation, and the description adds real behavior beyond that: passing null reverts the line to the automatic pick, which is non-obvious and matters for reversibility. It doesn't say what the call returns or what happens if the supplied part is not among the line's offers, but that is a modest gap rather than a contradiction.

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?

Two compact sentences, front-loaded with the action and followed by the key caveat. The first sentence is dense — the null behavior and the get_bom pointer are packed into one clause chain — but nothing is redundant.

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 three-parameter mutation with no output schema, the description covers what the tool changes, the valid source of the part value, and how to undo the choice. It omits validation/error behavior and whether the response reflects the updated BOM, which keeps it just short of complete.

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 100%, so baseline is 3, and the description earns extra credit by explaining the special null value for `part` (revert to automatic selection) and by framing `refs` as the identities of the line's references. The sourcing constraint on where a valid part string may come from adds meaning the schema does not carry.

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?

"Pick which offer a BOM line uses" is a specific verb plus resource, and the description immediately states the inputs that identify the target line (references plus seller part number or MPN). It also distinguishes itself from get_bom, which is only the source of candidate offers, so an agent can tell the two apart without opening schemas.

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 a clear condition of use (sourcing an existing line, choosing among offers from get_bom) and an explicit exclusion ("Sourcing only: a different component is a circuit change"), which steers the agent away from using it for design edits. It doesn't name the specific alternative tool for circuit changes, which keeps it short of a 5.

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