Skip to main content
Glama

ScorpTech x402 Tools

Totp

totp
Read-onlyIdempotent

TOTP / HOTP two-factor codes (RFC 6238 / 4226), compatible with Google Authenticator, Authy, 1Password and pyotp: generate the current code (plus previous / next and seconds remaining), verify a code with a drift window, create a new base32 secret with its otpauth:// URI for QR enrolment, or parse an otpauth URI. SHA1 / SHA256 / SHA512, 6–8 digits, any period; set time for reproducible results or counter for HOTP. POST so secrets never appear in URLs; secrets are not stored. Returns JSON with: mode, type, code, algorithm, digits, period, timeStep, time. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/totp

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "totp"
  }
}

Input Schema

NameRequiredDescriptionDefault
uriNoparse-uri: otpauth://totp/... or otpauth://hotp/...
codeNoverify: the code to check
modeNogenerate
timeNoUnix time (default: now)
bytesNonew-secret: secret length in bytes
digitsNo
issuerNo
periodNo
secretNoBase32 shared secret (spaces / lowercase OK)
windowNoverify: steps accepted either side
accountNoAccount label for the otpauth URI, e.g. alice@example.com
counterNoHOTP counter (switches to HOTP)
algorithmNoSHA1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses transport and privacy behavior (POST so secrets never appear in URLs, secrets are not stored), the cost model ($0.001 USDC per successful call via x402 on Base or Solana), the HTTPS endpoint, and the exact return fields. This is substantially more than readOnlyHint/idempotentHint convey.

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 capability statement is front-loaded and each clause carries information, but the single dense paragraph crams modes, crypto details, transport, pricing, and an alternate URL together. It is efficient rather than padded, though a slight structural split would improve scanability.

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?

For a 13-parameter tool with no output schema, the description covers the return shape explicitly and explains every mode's core inputs. The minor gap is documenting the new-secret parameters (bytes length, issuer/account labels for the otpauth URI), which are only implied by 'base32 secret with its otpauth:// URI'.

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?

With 62% schema coverage over 13 parameters, the description adds real meaning: window is described as a drift window, counter switches the mode to HOTP, time enables reproducibility, and algorithm/digits/period ranges are stated. It omits any explanation of bytes, issuer, and account, which are left to the schema (and issuer has no schema description at all).

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 names a specific standard (RFC 6238 / 4226) and enumerates the four concrete operations: generate current code, verify with drift window, create a base32 secret with otpauth:// URI, and parse an otpauth URI. An agent knows exactly what the tool does and which mode implements which capability without touching the schema.

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?

Each of the four modes gets a one-line statement of what it is for, plus explicit guidance on when to pass time (reproducible results) versus counter (switches to HOTP). There is no when-not-to-use guidance, but the sibling list is unrelated math utilities, so there is no real alternative to exclude.

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.

Resources