Skip to main content
Glama

Albert Heijn: Last-Chance Items

ah_get_last_chance_items
Read-only

Retrieves today-only clearance and last-chance items from an Albert Heijn store using a store ID, postal code, or your favourite store. Returns the store used and links product names to their URLs.

Instructions

Get last-chance / vandaag-af / clearance items from an Albert Heijn store. Uses store_id if given, else the store nearest postal_code, else the member's favourite store (set in the AH app), else the store nearest the member's address. Returns the store it used. Uses the dedicated bargainItems GraphQL endpoint which returns today-only markdown deals. 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_last_chance_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default 20)
store_idNoAH store ID from ah_search_stores (default: the member's favourite store)
postal_codeNoDutch postal code (e.g. '1234AB') to find the nearest store when store_id is not known.

Output Schema

NameRequiredDescriptionDefault
itemsYes
storeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.10.0
    • changedInput schema / properties / store_id / description
      Previous value: -"AH store ID. Required to retrieve bargain items."New value: +"AH store ID from ah_search_stores (default: the member's favourite store)"
    • addedOutput schema / properties / store
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "favorite": {
      +      "type": "boolean"
      +    },
      +    "id": {
      +      "type": "number"
      +    },
      +    "name": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "items"
      -]New value: +[
      +  "store",
      +  "items"
      +]
  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": {
      +    "items": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "brand": {
      +            "type": "string"
      +          },
      +          "category": {
      +            "type": "string"
      +          },
      +          "discount_percentage": {
      +            "type": "number"
      +          },
      +          "expiration_date": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "type": "number"
      +          },
      +          "markdown_type": {
      +            "type": "string"
      +          },
      +          "price_now": {
      +            "type": "string"
      +          },
      +          "price_was": {
      +            "type": "string"
      +          },
      +          "stock": {
      +            "type": "number"
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "title",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "items"
      +  ],
      +  "type": "object"
      +}
  3. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the readOnly annotation, the description explains the fallback store-resolution chain, says the response returns the store used, and notes that results are today-only markdown deals. It also instructs linking mentioned product or recipe names to their URLs, which is useful behavioral context not captured in annotations.

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 compact and front-loaded: it starts with the core action, then gives store resolution, return behavior, endpoint context, and output-linking guidance. There is no redundant or wasted phrasing.

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?

Given that an output schema exists and annotations mark the tool read-only, the description supplies the remaining important context: what is returned, which store is used, and how results should be referenced. Nothing essential for correct invocation 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 schema already documents each parameter. The description adds meaningful semantics by explaining the precedence between store_id and postal_code and the fallback to favourite store or member address.

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?

The description states a specific verb and resource: get last-chance / vandaag-af / clearance items from an Albert Heijn store. It also clarifies that these are today-only markdown deals from the dedicated bargainItems endpoint, which distinguishes this from bonus offers or general product listings.

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?

The description gives a clear store-resolution order: store_id, then postal_code, then favourite store, then member address. It does not explicitly name alternatives like bonus offers or personal offers, but the context and endpoint distinction make the intended use clear.

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