Skip to main content
Glama

get_2fa

Generate the current 2FA/TOTP code (6 digits) from a Base32 secret key (Google Authenticator style). Computed on the server in-memory only, never stored or logged. Free, no api_key required. WHEN TO USE: the user has an authenticator secret key (from an account they bought or own) and needs the live TOTP code now. PREFER INSTEAD: get_mail_code for email OTP/verification codes delivered to a mail-bundled order. Requires a valid Base32 secret. Sinh mã 2FA/TOTP hiện tại (6 số) từ khóa bí mật Base32; tính cục bộ, không lưu, không gửi đi đâu.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
secretYesBase32 secret key (spaces allowed). Khóa bí mật Base32 (cho phép có dấu cách).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden. It discloses that the code is computed in-memory only, never stored or logged, requires no API key, is free, and is not sent anywhere. These are the key behavioral facts an agent needs when deciding to call this tool.

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 English portion is well-structured and front-loaded with purpose, then behavior, then usage guidance. Some redundancy exists because the same content is repeated in Vietnamese, but that bilingual repetition can serve a broader user base without harming clarity.

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-parameter, no-output-schema tool, this description is complete. It explains the input, output, privacy behavior, alternative tool, and necessary conditions, so an agent has everything needed to call it correctly.

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?

The input schema already documents the secret parameter 100%, including that spaces are allowed. The description adds only 'requires a valid Base32 secret,' which is useful but not a major semantic addition beyond the structured schema.

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?

The description starts with a specific verb and resource: 'Generate the current 2FA/TOTP code (6 digits) from a Base32 secret key (Google Authenticator style).' It clearly identifies the output format and input type, and the 'PREFER INSTEAD' clause distinguishes it from get_mail_code.

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?

WHEN TO USE gives a concrete condition: the user has an authenticator secret key and needs the live TOTP code now. PREFER INSTEAD explicitly names get_mail_code for email OTP codes, so an agent can route between the two tools without ambiguity.

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.