Skip to main content
Glama

Albert Heijn: Receipt Details

ah_get_receipt_details
Read-only

Get full details for one Albert Heijn in-store receipt by transaction ID, including purchased items, discounts, savings stamps, payment method, and total amount. Use the ID from receipt history.

Instructions

Get full details of a single Albert Heijn in-store receipt (kassabon) by its id. Returns all purchased items with name, quantity, unit price, line total and deposit (statiegeld), plus any discounts, koopzegels (savings stamps) bought, payment method and total_amount. Get the id from ah_get_receipts first.

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": {
      "id": "<id>"
    },
    "name": "ah_get_receipt_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesReceipt transaction ID from ah_get_receipts

Output Schema

NameRequiredDescriptionDefault
idYes
itemsYes
paymentsNo
discountsNo
koopzegelsNo
total_amountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.9.0
    • addedOutput schema / properties / items / items / properties / deposit
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / koopzegels
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "amount": {
      +      "type": "number"
      +    },
      +    "quantity": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "quantity",
      +    "amount"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / total_amount
      Added value: +{
      +  "type": "number"
      +}
  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": {
      +    "discounts": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "amount": {
      +            "type": "number"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "amount"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "id": {
      +      "type": "string"
      +    },
      +    "items": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "name": {
      +            "type": "string"
      +          },
      +          "quantity": {
      +            "type": "number"
      +          },
      +          "total": {
      +            "type": "number"
      +          },
      +          "unit_price": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "total"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "payments": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "amount": {
      +            "type": "number"
      +          },
      +          "method": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "method",
      +          "amount"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "items"
      +  ],
      +  "type": "object"
      +}
  3. First observedv1.0.0

TDQS

A4.1/5.0
Behavior3/5

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

readOnlyHint=true already declares the safety profile, and the description reinforces a pure-read lookup. It adds useful domain context (statiegeld, koopzegels, discounts, payment method) but does not disclose behavior for edge cases such as an unknown or non-existent receipt id, nor any auth requirement.

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 sentences, front-loaded with the action and resource, then the payload, then the prerequisite. Every clause carries information; nothing is padding.

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?

With one fully documented required parameter, an output schema, and readOnlyHint annotations, the definition covers everything needed to call it correctly, including how to obtain the required id. The enumerated return fields are slightly redundant against the output schema but not harmful.

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 itself as 'Receipt transaction ID from ah_get_receipts', which the description essentially repeats. No additional format, length, or validation semantics are contributed beyond the schema.

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 full details of a single Albert Heijn in-store receipt (kassabon) by its id.' The singular 'single receipt' plus the id-based lookup clearly separates it from the plural sibling ah_get_receipts.

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?

'Get the id from ah_get_receipts first' gives an explicit prerequisite and routes the agent to the correct sibling for discovery. It stops short of stating when-not-to-use cases (e.g. bulk retrieval), but the context is unambiguous for a detail-lookup tool.

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