Skip to main content
Glama

get_price

Look up unit and tax-inclusive prices, totals, shipping days, and orderable quantities for a part number across multiple quantities, including quantity-discount tiers, in one request.

Instructions

查詢完整型號在各個數量下的單價、含稅單價、金額、出貨天數與可訂購數量。

part_number 是完整型號(用 resolve_part_number 取得)。quantities 是要查的數量清單 (每個都是正整數),一次請求查完,數量折扣階梯用多個數量探測。brand_code 是品牌代碼 (resolve_part_number、search_parts 的回應都有);沒給時由型號查出,型號屬於多個品牌時 回 ambiguous_brand 與 brand_codes,請指定其中一個。

price_basis 說明價格的基礎:customer 是目前登入帳號的客戶價(可能含折扣, discount_rate 有值),list 是定價(標準價,沒有登入或帳號沒有客戶價時)。帳號沒有客戶價時 回應另有 message 說明。金額與比率是十進位數的字串;每一筆的 messages 是 MISUMI 對那個 數量的提示(例如超過可訂購數量)。有保存登入但登入過期時不會改用定價:MISUMI 拒絕續期 回請重新 login 的錯誤,續期沒有完成(連線失敗、逾時)回可稍後再試的錯誤。

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

Input Schema

NameRequiredDescriptionDefault
brand_codeNo
quantitiesYes
part_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses the ambiguous_brand/brand_codes fallback when a part spans brands, the per-quantity messages field, the price_basis semantics (customer vs list), and the important rule that an expired saved login does NOT silently fall back to list price but returns a re-login error or a retry-later error. What it does not state is the read-only/idempotent nature of the call or any rate/performance characteristics, leaving a small gap for a tool with zero annotation coverage.

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?

Content is front-loaded with the purpose sentence followed by parameter semantics and then response/error behavior, and no sentence is filler. It is dense prose without any formatting or line breaks for the three distinct parameters, which makes the section slightly harder to scan than it needs to be.

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?

There is no output schema, and the description compensates by naming the returned fields (unit prices, amount, shipping days, orderable quantity, discount_rate, messages, price_basis, ambiguous_brand). It also enumerates the two distinct login-expiry error modes. Only the concrete shape of the response object is left implicit, which is a minor gap for a read tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 compensate entirely, and it does: part_number is defined as the full model number with its source tool, quantities is defined as a list of positive integers used to probe discount tiers in one request, and brand_code is defined with its sources, its default resolution behavior, and the exact ambiguous_brand outcome when omitted. This is meaning the schema alone could not convey.

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 opening sentence names a specific verb (查詢) and precisely enumerates the returned quantities: unit price, tax-inclusive unit price, amount, shipping days, and orderable quantity at each quantity tier. The scope qualifier (各個數量下) makes clear this is multi-quantity pricing, not a single lookup, so the agent can distinguish it from search_parts or resolve_part_number without opening the schema.

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 concrete workflow guidance: part_number must come from resolve_part_number, quantities should be supplied as a batch with multiple values to probe discount tiers, and brand_code can be sourced from resolve_part_number or search_parts responses. It does not state explicit when-not-to-use conditions relative to siblings beyond that prerequisite chain, so a 4 rather than a 5.

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