Skip to main content
Glama

Get Item Pricing

get_item_pricing
Read-only

One item's pricing picture (by id or SKU): list price, cost and margin, its brand, group and categories, its volume price tiers (with % off list), the general discount applied to it today, and its price history newest first (list, discounted and with-tax prices, default 20 rows, max 100). Change tiers with set_item_volume_pricing, discounts with save_discount, and the list price with upsert_items. What one customer pays, from its price lists, at a quantity: resolve_customer_price.

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": {
      "item": "<item>"
    },
    "name": "get_item_pricing"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYesThe item id (GUID) or SKU.
historyLimitNoPrice history rows to return, newest first (default 20, max 100).

Output Schema

NameRequiredDescriptionDefault
skuNo
costNo
nameNo
brandNo
groupNo
priceNo
itemIdNo
categoriesNo
volumeTiersNo
priceHistoryNo
marginPercentNo
activeDiscountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and closed-world, so the safety profile is covered. Beyond that the description adds genuinely useful behavior: newest-first ordering of history, the 20-row default with a 100 cap, and the presence of %-off and with-tax values. It stops short of noting pagination or truncation behavior at the 100 cap.

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?

Front-loaded with the core resource, then outputs, then the mutation alternatives, then the read alternative. Dense but each clause carries information; the long parenthetical near the start is the only mildly heavy element.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description needn't explain return values and it still enumerates the main fields. Annotations cover safety, schema covers parameters, and the sibling routing is spelled out, so an agent has everything needed to call it correctly.

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 100%, so both parameters are already documented, and the description's "by id or SKU" plus "default 20 rows, max 100" largely restate the schema. Baseline 3 applies; it adds "newest first" ordering context but no extra syntax or format meaning.

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?

States a specific resource and scope: "One item's pricing picture (by id or SKU)" followed by an enumeration of exactly what is included (list price, cost/margin, tiers, discounts, history). An agent can distinguish this read tool from the mutation siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes away to alternatives: tiers via set_item_volume_pricing, discounts via save_discount, list price via upsert_items, and customer-specific price at quantity via resolve_customer_price. This is when-to-use-which guidance, not just context.

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