Skip to main content
Glama

verify_2fa

Submit a verification code to complete a 2FA challenge. Rate limited to 10 attempts per minute.

ACCESS: needs a Proof account, signed in: call start_login, show the user its challenge, then wait_for_login, then call this tool again. Authenticating this client alone does NOT open this tool.

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": {
      "session_id": "<session_id>",
      "code": "<code>"
    },
    "name": "verify_2fa"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesVerification code
session_idYes2FA session ID

Output Schema

NameRequiredDescriptionDefault
statusYes
verified_atYes
grant_expires_atYesWhen the grant this step-up stored stops being accepted
grant_single_useYesWhether the grant is spent by the first act it allows

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "description": "The step-up is complete and its grant stored",
      +  "properties": {
      +    "grant_expires_at": {
      +      "description": "When the grant this step-up stored stops being accepted",
      +      "type": "string"
      +    },
      +    "grant_single_use": {
      +      "description": "Whether the grant is spent by the first act it allows",
      +      "type": "boolean"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "verified_at": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "verified_at",
      +    "grant_expires_at",
      +    "grant_single_use"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations are thin (readOnlyHint=false, destructiveHint=false), but the description adds two behaviors the annotations don't: a rate limit of 10 attempts per minute and an account/session prerequisite. That is real operational context. It omits what happens on an incorrect or expired code (attempt consumption, lockout, error shape), which matters for a challenge-completion call.

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?

The core action and the rate limit are front-loaded in the first sentence, with prerequisites isolated in a labeled ACCESS block that is easy to scan. Slightly awkward wording like 'call this tool again' adds minor noise but nothing is padded.

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 needn't be explained, and the auth chain plus rate limit cover the main calling risks. What remains missing is failure-mode guidance for wrong or expired codes, which would complete the picture for a submission tool.

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 coverage is 100% and both parameters carry descriptions, so the schema already documents session_id and code. The prose adds no further meaning such as where session_id comes from (presumably wait_for_login) or the code's format beyond the maxLength of 10. Baseline 3 is appropriate.

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 first sentence gives a specific verb and resource: submit a verification code to complete a 2FA challenge. That is unambiguous and distinct from sibling tools like start_2fa or wait_for_2fa. It stops short of naming the nearest alternative (verify_2fa_magic_link), so an agent must still infer which verification path applies.

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

Usage Guidelines4/5

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

The ACCESS block spells out the required sequence: start_login, show the challenge, wait_for_login, then this tool, and warns that authenticating the client alone is insufficient. That is concrete pre-call guidance. It doesn't cover when to prefer this over the magic-link or delegation verification siblings, so it falls short of full when/when-not coverage.

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.