Skip to main content
Glama

Albert Heijn: Product Details

ah_get_products
Read-only

Fetch detailed Albert Heijn product data by ID or barcode, including price, bonus, NutriScore, and optional nutritional values, to verify items or enrich search results.

Instructions

Get detailed information about one or more Albert Heijn products by ID (max 20). Returns title, brand, category, description, price, unit size, bonus info, NutriScore, property icons. Set include_nutritional_info=true to also return calories, fat, protein, etc. Get product IDs from ah_search_products, or pass barcodes: the EAN number under a product's barcode (8, 12, 13 or 14 digits, e.g. read from a photo of the pack). A barcode AH doesn't sell returns an error for it. When you mention a product or recipe from the result, link its name to its url.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ah_get_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
barcodesNoBarcode (EAN) numbers, e.g. ["8710400058519"]; counted in the max of 20 products (max 50 barcodes)
product_idsNoProduct IDs from ah_search_products, e.g. [123456] or [123456, 789012]; at most 20 products are fetched per call (max 50 ids)
include_nutritional_infoNoInclude nutritional values (default false)

Output Schema

NameRequiredDescriptionDefault
productsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.9.0
    • addedInput schema / properties / barcodes
      Added value: +{
      +  "description": "Barcode (EAN) numbers, e.g. [\"8710400058519\"]; counted in the max of 20 products (max 50 barcodes)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 50,
      +  "type": "array"
      +}
    • changedInput schema / properties / product_ids / description
      Previous value: -"Product IDs from ah_search_products, e.g. [123456] or [123456, 789012] (max 20)"New value: +"Product IDs from ah_search_products, e.g. [123456] or [123456, 789012]; at most 20 products are fetched per call (max 50 ids)"
    • addedInput schema / properties / product_ids / maxItems
      Added value: +50
    • removedInput schema / required
      Removed value: -[
      -  "product_ids"
      -]
    • changedOutput schema / properties / products / items / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "bonus_mechanism": {
      -        "type": "string"
      -      },
      -      "bonus_price": {
      -        "type": "number"
      -      },
      -      "brand": {
      -        "type": "string"
      -      },
      -      "category": {
      -        "type": "string"
      -      },
      -      "description": {
      -        "type": "string"
      -      },
      -      "id": {
      -        "type": "number"
      -      },
      -      "image_url": {
      -        "type": "string"
      -      },
      -      "is_available": {
      -        "type": "boolean"
      -      },
      -      "is_bonus": {
      -        "type": "boolean"
      -      },
      -      "nutri_score": {
      -        "type": "string"
      -      },
      -      "nutritional_info": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "name": {
      -              "type": "string"
      -            },
      -            "type": {
      -              "type": "string"
      -            },
      -            "value": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "type",
      -            "name",
      -            "value"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "price": {
      -        "type": "number"
      -      },
      -      "property_icons": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "unit_price_description": {
      -        "type": "string"
      -      },
      -      "unit_size": {
      -        "type": "string"
      -      },
      -      "url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "title",
      -      "url",
      -      "price",
      -      "is_bonus",
      -      "is_available"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "type": "string"
      -      },
      -      "id": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "barcode": {
      +        "type": "string"
      +      },
      +      "bonus_mechanism": {
      +        "type": "string"
      +      },
      +      "bonus_price": {
      +        "type": "number"
      +      },
      +      "brand": {
      +        "type": "string"
      +      },
      +      "category": {
      +        "type": "string"
      +      },
      +      "description": {
      +        "type": "string"
      +      },
      +      "id": {
      +        "type": "number"
      +      },
      +      "image_url": {
      +        "type": "string"
      +      },
      +      "is_available": {
      +        "type": "boolean"
      +      },
      +      "is_bonus": {
      +        "type": "boolean"
      +      },
      +      "nutri_score": {
      +        "type": "string"
      +      },
      +      "nutritional_info": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "name": {
      +              "type": "string"
      +            },
      +            "type": {
      +              "type": "string"
      +            },
      +            "value": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "type",
      +            "name",
      +            "value"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "price": {
      +        "type": "number"
      +      },
      +      "property_icons": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "unit_price_description": {
      +        "type": "string"
      +      },
      +      "unit_size": {
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "title",
      +      "url",
      +      "price",
      +      "is_bonus",
      +      "is_available"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "barcode": {
      +        "type": "string"
      +      },
      +      "error": {
      +        "type": "string"
      +      },
      +      "id": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changedv1.3.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "products": {
      +      "items": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "bonus_mechanism": {
      +                "type": "string"
      +              },
      +              "bonus_price": {
      +                "type": "number"
      +              },
      +              "brand": {
      +                "type": "string"
      +              },
      +              "category": {
      +                "type": "string"
      +              },
      +              "description": {
      +                "type": "string"
      +              },
      +              "id": {
      +                "type": "number"
      +              },
      +              "image_url": {
      +                "type": "string"
      +              },
      +              "is_available": {
      +                "type": "boolean"
      +              },
      +              "is_bonus": {
      +                "type": "boolean"
      +              },
      +              "nutri_score": {
      +                "type": "string"
      +              },
      +              "nutritional_info": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "name": {
      +                      "type": "string"
      +                    },
      +                    "type": {
      +                      "type": "string"
      +                    },
      +                    "value": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "type",
      +                    "name",
      +                    "value"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "price": {
      +                "type": "number"
      +              },
      +              "property_icons": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "title": {
      +                "type": "string"
      +              },
      +              "unit_price_description": {
      +                "type": "string"
      +              },
      +              "unit_size": {
      +                "type": "string"
      +              },
      +              "url": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "title",
      +              "url",
      +              "price",
      +              "is_bonus",
      +              "is_available"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "error": {
      +                "type": "string"
      +              },
      +              "id": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "error"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "products"
      +  ],
      +  "type": "object"
      +}
  3. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With readOnlyHint=true already declaring a safe read, the description adds real value beyond annotations: the 20-product cap, the partial-failure behavior for unknown barcodes, the opt-in flag for nutritional data, and a downstream formatting instruction for linking product URLs. It doesn't discuss ordering or what happens with mixed valid/invalid IDs, so it falls just short of a 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?

Front-loads purpose and returned fields, then usage, then the nutritional flag, then linking. Dense but every sentence carries information. The final sentence about linking product names to URLs is arguably presentation guidance rather than tool-selection content, which keeps it from a 5.

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?

Output schema and full schema coverage are supplied, and the description still states the return payload, the cap, the error case, and the optional nutrition expansion. Nothing an agent needs to call this correctly or interpret results 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 meaning the schema lacks: barcodes are EAN codes of 8/12/13/14 digits, may be read from a photo of the pack, and barcodes count against the same 20-product limit as IDs. It also clarifies the effect of include_nutritional_info on the returned payload.

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?

Opens with a concrete verb and resource ("Get detailed information about one or more Albert Heijn products by ID"), then enumerates the returned fields, so an agent knows exactly what it gets. It is clearly distinguished from ah_search_products, which is named as the source of the IDs.

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?

Gives clear routing guidance: get product IDs from ah_search_products, or supply barcodes directly. It also states the key exclusion (a barcode AH doesn't sell returns an error for that item). It stops short of saying when to prefer this over siblings like ah_get_product_alternatives, but the retrieval context is well covered.

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