Skip to main content
Glama

get_price

Read-onlyIdempotent

Prices a single electronic part for a given quantity, picks the cheapest packaging that covers it, and shows the next price break.

Instructions

Price a quantity of one part: picks the cheapest packaging (cut tape, tray, reel...) that covers the quantity and shows the next price break.

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": {
      "part_number": "<part_number>"
    },
    "name": "get_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
quantityNo
part_numberYes

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?

Beyond the readOnly/idempotent annotations, the description discloses real behavioral logic: it selects the cheapest packaging that covers the quantity and returns the next price break. That selection rule is the key non-obvious behavior. It does not discuss currency, price tiers beyond the next break, or failure cases, which keeps it below a 5.

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, front-loaded with the action, with the packaging and price-break behavior following immediately. The parenthetical examples are compact and no sentence is wasted.

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 and annotations cover safety and idempotency, so the description only needs to explain the pricing logic, which it does. The remaining gap is the expected format for part_number, which matters for correct invocation.

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 0%, so the description must carry the parameter meaning. It clarifies that quantity is the count of parts being priced and that part_number identifies the single part, but it does not specify the expected identifier format (e.g. an LCSC part number) or note the default/minimum quantity of 1.

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?

States a specific verb and resource ("Price a quantity of one part") and scopes it to a single part, which implicitly separates it from the BOM-wide sibling. It stops short of naming price_bom as the alternative, so the differentiation relies on the reader inferring it from "one part".

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 only implied: the phrase "one part" suggests this is the single-part pricing path and that bulk/BOM pricing belongs elsewhere. There is no explicit when-to-use or when-not-to-use statement and no prerequisites mentioned.

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