Skip to main content
Glama

Albert Heijn: Log In

ah_login

Log in to Albert Heijn: get a login link, then submit the code from the redirect to finish. Returns your account name if already logged in.

Instructions

Log in to Albert Heijn in two steps. 1) Call without arguments: returns the AH login link and instructions to show the user. 2) After the user logs in, the browser shows a link like appie://login-exit?code=...; call ah_login again with code set to that link (or just the code) to finish. Codes are single-use and expire quickly. If already logged in, returns the account name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoThe appie://login-exit?code=... link the user copied after logging in, or just the code. Omit to start a login.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With annotations only declaring readOnlyHint=false and destructiveHint=false, the description carries the real behavioral burden and does so well: codes are single-use, expire quickly, and an already-authenticated session returns the account name. It doesn't mention session lifetime, token storage, or what happens on an expired/invalid code, which keeps it 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two numbered steps plus two short trailing sentences; the flow is front-loaded and every sentence (expiry, already-logged-in behavior) carries distinct, actionable 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?

There is no output schema, so the description must describe returns, and it does: a login link plus instructions on the first call and the account name when already logged in. For a one-optional-parameter auth tool this is complete.

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 100% and the single `code` parameter is fully documented there, so baseline is 3. The description restates that the full link or just the code is accepted and that omitting it starts a login, adding no semantics 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 ('Log in to Albert Heijn') and immediately distinguishes itself from siblings by describing the two-step flow unique to this tool. An agent can tell it apart from ah_logout and the shopping-list tools without opening a schema.

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

Usage Guidelines5/5

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

Explicitly says when to call with no arguments (to start) and when to call with `code` (to finish after the user logs in), including the exact redirect shape to look for. It also covers the already-logged-in case, leaving nothing to inference.

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