Skip to main content
Glama

get_authenticator_code

Return the current six-digit authenticator code for a site, for agents whose browser runnerID cannot reach. Pass login (username or email) when the site has multiple accounts. The code lasts about 30 seconds and the release is logged. The seed is never returned. Prefer fill_code when you have a cdp_url. With no seed for the site, the answer carries authenticator_setup, the site's steps. If a site's verification has no saved seed, ask the owner for one sign-in approval, then add runnerID as a second authenticator using the site guide, then save_authenticator. Never ask the owner for codes repeatedly.

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": {
      "site": "<site>"
    },
    "name": "get_authenticator_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYes
loginNo
approval_idNo
identity_idNoIdentity to use. Omit when the account has exactly one identity.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / approval_id
      Added value: +{
      +  "format": "uuid",
      +  "type": "string"
      +}
    • addedInput schema / properties / login
      Added value: +{
      +  "maxLength": 500,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does so: the code expires in about 30 seconds, the release is logged, the seed is never returned, and a missing seed changes the response shape to include authenticator_setup. These are exactly the operational and safety facts an agent needs before calling.

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?

Dense and front-loaded — the core action and the sibling routing come first — with almost no filler. The mid-section sentence about authenticator_setup and the fallback chain is slightly run-on and would read better as a separate line, but nothing is redundant.

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 four-parameter tool with no output schema, the description still communicates return content (six-digit code, or authenticator_setup instructions when no seed exists) and the multi-step recovery path. Nothing an agent needs to call it correctly is missing.

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 only 25%, so the description must compensate and largely does: it explains what 'site' represents and when to pass 'login' (multiple accounts on one site), and the approval workflow implicitly motivates approval_id. It never explicitly names approval_id or identity_id, so an agent still has to infer which parameter carries the approval returned by request_approval.

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 ('Return the current six-digit authenticator code for a site') and immediately scopes it to agents whose browser runnerID cannot reach the site, which distinguishes it from fill_code and capture_authenticator. An agent can identify the tool's role without opening the 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?

Gives explicit routing guidance: 'Prefer fill_code when you have a cdp_url', plus the condition for passing login and a full fallback procedure (request one sign-in approval, add runnerID as a second authenticator via the site guide, then save_authenticator). It also states a when-not behavior — never ask the owner for codes repeatedly.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources