Skip to main content
Glama

get_product_details

Retrieve nutrition facts, ingredients, allergens, price, and ratings for one or more product IDs returned by search_products.

Instructions

Get full product details including nutrition facts, ingredients, allergens, price, and ratings. Use search_products first to get product IDs.

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": {
      "productIds": "<productIds>"
    },
    "name": "get_product_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
productIdsYesArray of product IDs (UIDs) to get details for. Get these from search_products first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It usefully discloses what data comes back (nutrition, ingredients, allergens, price, ratings), implying a read-only aggregate lookup, but says nothing about auth requirements, rate limits, or behavior on unknown/partial product IDs.

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, both earning their place: the first states scope and contents, the second states the prerequisite. No filler and the most important information leads.

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 one-parameter read tool with no output schema, the enumerated field list effectively stands in for return-value documentation and the prerequisite is stated. Only edge-case behavior for invalid or mixed product IDs is left 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?

The single parameter is already fully documented in the schema at 100% coverage, including bulk array semantics and the UID provenance. The description only restates the search_products-first rule, adding no new syntax or format detail such as a cap on array size.

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 (get product details) and enumerates the returned facets: nutrition facts, ingredients, allergens, price, ratings. This distinguishes it from sibling detail tools like get_order_details or get_recipe_details, which cover different entities.

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?

Explicitly directs the agent to call search_products first to obtain product IDs, which is real sequencing guidance naming the alternative discovery tool. It does not state when not to use it or what happens with stale/invalid IDs, so it falls short of full when/when-not coverage.

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