Skip to main content
Glama

get_product

Read-only

Fetches one product's full details—price, unit price, ingredients, allergens, origin, nutrition, category, image, and available page URL—by chain and ID from BILLA, SPAR, HOFER, or dm.

Instructions

Full detail of one product: price and unit price, description, ingredients, allergens, origin, nutrition (where the chain has them), category and a picture. BILLA and dm add the product page url.

Args: product_id: A hit's id from the same chain.

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

Input Schema

NameRequiredDescriptionDefault
chainYes
product_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered; the description adds real value on top by disclosing that nutrition data is only present 'where the chain has them' and that the product page `url` exists only for BILLA and dm. Those are chain-dependent gaps an agent could not infer otherwise. It does not say what happens on a mismatched chain/id or an unknown id, which keeps it below 5.

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?

The returned-field summary is front-loaded and the Args block is compact and direct. The field enumeration reads as a run-on list and could be tightened, but nothing is redundant with the schema or annotations.

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?

There is no output schema, so the description must describe return content, and it does so thoroughly, including conditional field availability per chain. For a read-only single-item lookup with only two parameters, the remaining gap — error behavior for a stale or cross-chain id — is minor.

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 0%, so the description carries the burden. It defines `product_id` well as an id taken from a prior search hit and conveys the non-obvious coupling that the id must belong to the same chain. The `chain` parameter itself is never described by name — its valid values come only from the schema enum — so half the parameters get no description-side semantics.

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 states a specific resource ('Full detail of one product') and enumerates the returned content (price, ingredients, allergens, nutrition, category, picture), so an agent knows exactly what it retrieves. It implicitly separates itself from the list/search siblings by noting that `product_id` is a hit's `id` from the same chain, though it never names `search_products` explicitly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: 'A hit's ``id`` from the same chain' tells the agent this is a detail-fetch that follows a search result, which is genuinely useful sequencing information. However, there is no explicit when-to-use/when-not-to-use statement and no named alternative for the 'list many products' case.

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