Skip to main content
Glama

Check or Refresh Lidl Login Session

lidl_login
Idempotent

Checks authentication status, refreshes expired access tokens using a stored refresh token, and fetches live member identity when signed in.

Instructions

Check authentication status, refresh an expired access token if a refresh token is persisted, and fetch live member identity when authenticated.

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": "lidl_login"
  }
}

Input Schema

NameRequiredDescriptionDefault
countryNo2-letter Lidl country code (e.g. 'nl' or 'de'). Defaults to LIDL_COUNTRY ('nl').

Output Schema

NameRequiredDescriptionDefault
statusYes
profileNo
savedAtNo
configuredYes
tokensFileYes
profileErrorNo
authenticatedYes
defaultCountryYes
hasAccessTokenYes
defaultLanguageYes
hasRefreshTokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, and the description adds genuine conditional behavior beyond them: the refresh only occurs when a refresh token is persisted, and identity is only fetched when authenticated. This explains why readOnlyHint=false without contradicting it (token refresh is a state write). It does not say what is returned or raised when unauthenticated or when no refresh token exists, which is the remaining gap.

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?

A single sentence that front-loads the primary action and packs the three behaviors without filler. It reads as a run-on list of three steps rather than structured phases, which slightly reduces scannability but wastes no words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, and the single optional parameter is fully covered by the schema. The description covers all three behavioral branches of the tool; the only omissions are failure-mode behavior and whether the tool must be called before other authenticated operations.

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?

There is a single optional parameter with 100% schema description coverage, which already documents the country code, its length bounds, an example, and the LIDL_COUNTRY default. The description adds nothing about the country parameter, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names three concrete actions: checking auth status, refreshing an expired access token, and fetching live member identity. The verb+resource pairing is specific enough that an agent knows this is a session/auth tool rather than a data tool. It stops short of explicitly distinguishing itself from sibling 'lidl_get_profile', which plausibly overlaps with 'fetch live member identity'.

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

Usage Guidelines3/5

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

Usage is only implied through conditional clauses ('if a refresh token is persisted', 'when authenticated') — the agent can infer this is a session-priming tool to call before authenticated operations, but it is never stated. No explicit when-to-use or when-not-to-use guidance, and no named alternative such as 'lidl_get_profile' for profile retrieval.

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