Skip to main content
Glama

Albert Heijn: Search Stores

ah_search_stores
Read-only

Locate Albert Heijn stores near a Dutch postal code or member profile, with the favourite store listed first and store IDs for last-chance item lookup.

Instructions

Find Albert Heijn stores near a Dutch postal code. If no postal_code is given, uses the address from the member profile and lists the member's favourite store (set in the AH app) first. The favourite store is marked favorite: true. Returns store id (use this for ah_get_last_chance_items), name, type, and address.

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_search_stores"
  }
}

Input Schema

NameRequiredDescriptionDefault
postal_codeNoDutch postal code, e.g. '1234AB'. Optional — falls back to member address.

Output Schema

NameRequiredDescriptionDefault
storesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.10.0
    • addedOutput schema / properties / stores / items / properties / favorite
      Added value: +{
      +  "type": "boolean"
      +}
  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": {
      +    "stores": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "city": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "type": "number"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "postal_code": {
      +            "type": "string"
      +          },
      +          "street": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "stores"
      +  ],
      +  "type": "object"
      +}
  3. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

readOnlyHint=true is consistent with a lookup tool, so the safety bar is met by annotations. Beyond that, the description discloses real behavior the annotations do not: the member-profile address fallback, the favourite store being listed first, and the favorite: true marker on that entry. Ordering and defaulting behavior are exactly the kind of context structured fields cannot express.

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?

Three tight sentences, front-loaded with the primary action and constraint, followed by fallback behavior and then the return contract. No filler, and each sentence carries distinct information.

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?

For a zero-required-parameter read tool with an output schema, this covers everything an agent needs: how to target the search, what happens without input, how results are ordered and flagged, and where the returned id is consumed. Return field details are largely delegated to the existing output schema, which is appropriate.

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 coverage is 100% and the single parameter already documents the Dutch postal code format and the member-address fallback, so the description largely restates the schema. It reinforces the Dutch locale and the fallback consequence but adds no format or validation detail beyond it. Baseline 3 applies when the schema does the heavy lifting.

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 ('Find Albert Heijn stores') plus the geographic constraint ('near a Dutch postal code'), which cleanly separates it from the product, recipe, and offer siblings. It also names the downstream consumer of the returned store id, making the tool's role unambiguous.

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 a clear usage condition — supply a postal code to search near it — and explains the implicit fallback when the optional parameter is omitted. It also routes the agent onward by noting the store id is what ah_get_last_chance_items needs. It does not explicitly exclude or compare against any other store-related alternative, but none is obviously needed.

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