Skip to main content
Glama

get_product

Get one public product by id, including its purchasable variants. Use an id from search_products results.

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": {
      "id": "<id>"
    },
    "name": "get_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe product id, from a search or list result.

Output Schema

NameRequiredDescriptionDefault
idYesProduct id.
nameYesProduct name.
pathYesStorefront path of the product page.
tagsYesThe product's tags from the controlled vocabulary.
stockYesStock summed over the product's enabled variants.
ratingYesLive reviews aggregate for this product.
categoryYesThe product's category.
variantsNoThe product's purchasable combinations. Present on the detail response only — the list stays a summary — so an agent chooses a combination from the detail it already fetched before adding to a cart.
price_yenYesCurrent selling price in integer yen, tax included, after any active sale — the price a buyer would pay.
purchasableYesWhether the product can be bought right now, under the same rule the cart applies: untracked stock or backorder is always buyable; tracked stock needs a unit on hand.
allow_backorderYesWhether the product can be ordered beyond its stock.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose two useful traits — only public products are returned, and variants are included in the response — but says nothing about behavior for unknown, unpublished, or deleted ids, nor about any auth or rate constraints.

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?

Two short sentences, zero waste, with the core action and return scope front-loaded before the id-provenance hint.

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 simple single-parameter read tool with an output schema covering return shape, this is nearly sufficient. The remaining gap is error/empty-result behavior, which the description leaves unaddressed.

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 coverage is 100% and the single id parameter already documents its source ('from a search or list result'). The description restates that same provenance rather than adding new meaning, so the baseline 3 applies.

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 with scope: 'Get one public product by id, including its purchasable variants.' That clearly separates a single-item fetch from the list-oriented search_products sibling, though it never explicitly frames the contrast.

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?

'Use an id from search_products results' tells the agent where the required id comes from and implies the search-then-fetch workflow. There is no explicit when-not guidance (e.g., don't use for browsing or bulk retrieval), but the calling context is clear.

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