Skip to main content
Glama

generate_totp_token

Generate RFC-6238 compliant Time-based One-Time Passwords for machine authentication. Deterministically create TOTP tokens to secure automated access.

Instructions

RFC-6238 compliant deterministic Time-based One-Time Password (TOTP) generator and verification kernel for machine authentication. (0.01 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose meaningful behavioral traits: the tool is 'deterministic', 'RFC-6238 compliant', and it costs '0.01 USDC on Base L2'. It also mentions both generation and verification. However, it does not clarify side effects (e.g., whether it reads/mutates state), required inputs beyond a generic payload, or the nature of the 'verification kernel'. The payment hint is a useful transparency addition.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The entire description is one concise sentence that front-loads the core function and ends with a brief cost note. Every word earns its place; there is no fluff or repetition of schema details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, but the description fails to explain what the tool returns (e.g., a TOTP code or a boolean verification result). It also does not describe the payload format expected, beyond the vague schema text, nor does it elaborate on the payment requirement beyond the bare cost. For a tool with only two parameters, the missing return behavior and input expectations leave an agent under-informed.

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 description coverage is 100%, so the baseline is 3. The payload parameter is described only as 'Input parameters or JSON string payload for the tool execution', which is generic and unhelpful. The description adds the TOTP context but does not specify what the payload must contain (e.g., secret, time step). The paymentSignature is better explained in the schema. Overall, the description adds minimal value beyond the 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 clearly states the tool's function: 'RFC-6238 compliant deterministic Time-based One-Time Password (TOTP) generator and verification kernel.' This gives a specific verb (generate/verify), a specific resource (TOTP), and the compliance standard. It also implicitly differentiates from sibling crypto/security tools like generate_secure_hashcash or verify_evm_signature by naming TOTP explicitly.

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

Usage Guidelines3/5

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

The description includes 'for machine authentication', which implies when the tool should be used. However, it provides no explicit when-not-to-use guidance, no alternatives, and no prerequisites or setup context. There is no mention of when to choose this over other authentication-related siblings, leaving the agent to infer.

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