Skip to main content
Glama

Grocery product details

market_product
Read-onlyIdempotent

Fetches a single product's details and price from a specified store using its product ID and vendor code.

Instructions

Get one product's details and price in one store.

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": {
      "product_id": "<product_id>",
      "vendor_code": "<vendor_code>"
    },
    "name": "market_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
full_textNoText uncut (default 400 chars).
product_idYesProduct id from a market_* list.
vendor_codeYesStore code, e.g. '32xxwe'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • changedInput schema / properties / full_text / description
      Previous value: -"Return the description uncut (default cut to 400 chars)."New value: +"Text uncut (default 400 chars)."
    • changedInput schema / properties / vendor_code / description
      Previous value: -"Store code from market_search / market_stores, e.g. '32xxwe'."New value: +"Store code, e.g. '32xxwe'."
  2. Changed6 schema fields changedv0.2.0
    • addedInput schema / properties / full_text
      Added value: +{
      +  "default": false,
      +  "description": "Return the description uncut (default cut to 400 chars).",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / product_id / description
      Previous value: -"Product id from a market_* product list."New value: +"Product id from a market_* list."
    • removedInput schema / properties / product_id / title
      Removed value: -"Product Id"
    • removedInput schema / properties / vendor_code / title
      Removed value: -"Vendor Code"
    • removedInput schema / title
      Removed value: -"market_productArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "market_productDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety and repeatability profile is covered. The description adds only the scoping fact that the lookup is store-bound; it says nothing about what "details" comprise, whether full_text truncation affects pricing fields, or any rate/auth considerations. With annotation coverage this is adequate but thin.

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?

A single front-loaded sentence with no filler, and the key scope (one product, one store) appears immediately. It is arguably too terse, but that is a completeness problem rather than a conciseness one.

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

Completeness3/5

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

For a simple read tool with a fully documented three-parameter schema and four annotations, most structural burden is already carried elsewhere. What is missing is the relationship to the surrounding market_* family and any hint about what the returned details include, which leaves the agent to guess at selection among siblings.

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%, and the schema already explains full_text truncation, that product_id comes from a market_* list, and the vendor_code format. The description adds no parameter meaning beyond that, which is acceptable at full coverage but earns only the baseline.

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?

The description gives a specific verb and resource ("Get one product's details and price") plus the scoping constraint "in one store," which implicitly separates it from list-style siblings like market_store_products and search siblings like market_find_cheapest. It stops short of naming any sibling explicitly, so the differentiation is inferred rather than stated.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of the alternative tools (market_store_products for a listing, market_find_cheapest for price comparison), and no statement of prerequisites such as needing a product_id from a prior market_* call. An agent must infer the routing decision entirely from the phrase "one product ... in one store."

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