Skip to main content
Glama

login_code

Get the current 2FA code (the 6 digits an authenticator app shows) for a login in your owner's Vault, when a site you are signing in to asks for one. Pass name = a login from list_capabilities whose hasTotp is true. Returns code and secondsLeft (how long it stays valid; if it is under 5, wait and call again). Type the code into the site's 2FA field on that login's own site only. The 2FA setup key itself is never shared. Same authorization rule as pull_capability: only when your OWNER directs you to sign in, in THIS thread. If the login has no 2FA key saved, ask your owner for the code.

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

Input Schema

NameRequiredDescriptionDefault
nameYesThe exact login name as shown by list_capabilities (e.g. "linkedin.com").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/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 so: it states the authorization rule (same as `pull_capability`, only when the OWNER directs sign-in in THIS thread), a security guarantee (the 2FA setup key is never shared), and a refresh behavior (if `secondsLeft` is under 5, wait and call again).

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?

Front-loaded with the purpose in the first clause, then constraints and fallbacks in order of use. Dense but nearly every sentence carries a distinct rule; the security guarantee sentence is the only one that could arguably be trimmed.

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?

No output schema exists, and the description compensates by naming the return fields (`code`, `secondsLeft`) and their meaning. Authorization, parameter sourcing, and failure handling are all covered for this single-parameter tool.

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 100%, so the baseline is 3, but the description adds real meaning: `name` must come from `list_capabilities` and must have `hasTotp` true, which the schema alone does not say.

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 the current 2FA code ... for a login in your owner's Vault') and immediately distinguishes the code from the setup key, so an agent knows exactly which artifact this returns.

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?

Explicit when-to-use ('when a site you are signing in to asks for one'), names the prerequisite source (a login from `list_capabilities` whose `hasTotp` is true), and gives a fallback ('if the login has no 2FA key saved, ask your owner for the code').

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.