Skip to main content
Glama
@proof-holdings/mcp-server

@proof-holdings/mcp-server

Official

get_2fa_status

Read-only

Poll a 2FA session by ID to check if it is verified, pending, or expired, then proceed with the protected action or restart authentication.

Instructions

Check the status of a 2FA session by session ID. Returns whether the challenge has been completed, is pending, or has expired.

Agent usage: Poll this after calling start_2fa. Check every few seconds. Terminal states: "verified" (proceed with protected operation), "expired" (restart with start_2fa). While "pending", the user has not yet entered their code.

Before calling this for a challenge you created, make sure your reply text already shows the user what to act on — the link itself, the SMS text and number, or a note to check their inbox; a link that appeared only in a tool result is one they never saw.

ACCESS: needs a Proof account, signed in: call start_login, show the user its challenge, then wait_for_login, then call this tool again. An API key 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>"
    },
    "name": "get_2fa_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes2FA session ID

Output Schema

NameRequiredDescriptionDefault
statusYes
session_idYes
action_typeYesThe action the session was started for: one of `TwoFAActionType` for sessions started through this API; admin-console sessions carry internal values.
verified_atNo
grant_expires_atNoWhen the grant this step-up stored stops being accepted
grant_single_useNoWhether the grant is spent by the first act it allows

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.7.2
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "description": "A 2FA session's state; the grant fields are present once `status` is `verified`",
      +  "properties": {
      +    "action_type": {
      +      "description": "The action the session was started for: one of `TwoFAActionType` for sessions started through this API; admin-console sessions carry internal values.",
      +      "type": "string"
      +    },
      +    "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"
      +    },
      +    "session_id": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "verified_at": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "session_id",
      +    "status",
      +    "action_type"
      +  ],
      +  "type": "object"
      +}
  2. First observedv1.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true and the description is consistent with a pure read, while adding real context: session provenance, state semantics, and a polling cadence that implies a soft rate expectation. It also requires a Proof account signed in via start_login → wait_for_login, which is behavior no annotation conveys. The extra paragraph about pre-showing the link/SMS text is useful but is presented as a duty rather than explaining the tool's own behavior, and return-format detail is deferred to the output schema.

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 purpose and return values, then usage, then prerequisites — a sensible ordering. It runs longer than needed, with the link/SMS paragraph and the ACCESS block both restating login sequencing, and the multi-clause sentence about reply text is somewhat tangled.

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 no prose, and the definition covers auth prerequisites, state meanings, and polling expectations. The missing piece is disambiguation from wait_for_2fa, which is the most likely wrong turn for an agent in this flow.

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?

Only one parameter (session_id) with 100% schema coverage, so the baseline is 3. The description adds modest meaning by tying the ID to a challenge the caller created via start_2fa, but no format or provenance detail beyond that.

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 ("Check the status of a 2FA session by session ID") and enumerates the outcome space (completed, pending, expired), so an agent knows exactly what it retrieves. It also names the creating sibling (start_2fa), anchoring the tool in the flow.

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?

Gives explicit when-to-use guidance: poll after start_2fa, every few seconds, and act on terminal states ("verified" proceed, "expired" restart with start_2fa). The notable gap is the close sibling wait_for_2fa — the definition never says why an agent would poll here instead of blocking there.

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

Deploy Server

Other Tools