Skip to main content
Glama

Get product details

get_product
Read-onlyIdempotent

Fetch a product by code to view available sizes, fabrics, per-variant prices, and design details before adding it to the cart.

Instructions

Get one product by its code: available sizes, fabrics, the price of each size+fabric variant, and the design's 'about' text. Call it before add_to_cart when the human hasn't picked a size yet or may want another fabric — a search card doesn't list them. code is the code field of a search_products card (the end of its /p/ url); add_to_cart then takes the numeric good_id, which this result also returns. Read-only; an unknown code returns error 'product not found'.

Input Schema

NameRequiredDescriptionDefault
codeYesProduct code from search_products results.

Output Schema

NameRequiredDescriptionDefault
urlNo
codeNo
aboutNoDesign description text (may be null).
errorNoPresent when the product was not found.
imageNo
priceNo
sizesNo
themeNo
titleNo
fabricsNo
good_idNo
productNo
currencyNo
variantsNoPrice per size+fabric combination.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the description correctly reinforces 'Read-only' without needing to restate safety. It adds meaningful behavior beyond the annotations by disclosing the unknown-code failure mode ('product not found') and by noting that the result returns the numeric good_id needed for add_to_cart.

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?

The description is front-loaded with what the tool returns, followed by when to use it and how the code maps to other tools. Every sentence carries actionable information with no repetition or filler.

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?

For a single-parameter read tool with an output schema and full annotation coverage, the description supplies everything an agent needs: what is returned, when to call it, where the code comes from, how the result feeds add_to_cart, and the error case. Little is missing.

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 the baseline is 3, but the description adds real meaning: the code is the `code` field of a search_products card and specifically the end of its /p/<code> URL. It also clarifies the distinction from the numeric good_id consumed by add_to_cart, which the schema alone does not explain.

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 verb and resource, then enumerates exactly what the result contains: sizes, fabrics, per-variant prices, and the design's 'about' text. It is clearly distinguishable from search_products, which returns only cards, and from add_to_cart, which is the downstream action.

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 says to call it before add_to_cart when the human hasn't picked a size yet or may want another fabric, and explains why a search card is insufficient. It also names search_products as the source of the code and explains how add_to_cart uses the returned good_id.

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