Skip to main content
Glama

authenticate

Log in to Migros with a current six-digit 2FA code only when an authenticated tool reports fresh_code_required; omit the code to reuse a cached session or if no 2FA is configured.

Instructions

Log in to Migros with the current six-digit 2FA code from the user's authenticator app (ask the user for it, or read it from a password manager you have access to). Only needed when an authenticated tool reports fresh_code_required, which happens when no TOTP secret is configured. Omit totpCode to reuse a cached session, or if the account has no 2FA. The code is never stored or returned.

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

Input Schema

NameRequiredDescriptionDefault
totpCodeNoCurrent six-digit TOTP code. Omit to reuse a cached session, or if the account has no 2FA.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the session-caching model, the security guarantee that the code is never stored or returned, and the precondition that triggers it. It stops short of saying what happens on an invalid or expired code, or how long the session lasts.

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 sentences, front-loaded with the action and its input, followed by the trigger condition and the optional-parameter case. No restatement of the title and no filler.

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 single optional-parameter tool with no output schema and no annotations, the description covers every decision the agent must make: whether to call it, how to get the value, and what happens to the secret. Nothing material is missing for correct invocation.

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 already 100%, so the baseline is 3, and the description earns a bump by adding acquisition guidance absent from the schema ('ask the user for it, or read it from a password manager you have access to'). The omission semantics are partly duplicated from the schema, but the sourcing instruction is genuinely new.

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 Migros') plus the mechanism ('current six-digit 2FA code'), which no sibling tool covers. The agent can immediately tell this is the authentication entry point rather than a data-fetching tool.

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?

Gives an explicit trigger ('Only needed when an authenticated tool reports fresh_code_required, which happens when no TOTP secret is configured') and an explicit non-trigger ('Omit totpCode to reuse a cached session, or if the account has no 2FA'). It also resolves the practical blocker of how to obtain the code.

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