Skip to main content
Glama
MCP Credentials Server

MCP Credentials Server

by hsuehic

generate_2fa

Create a two-factor authentication (2FA) code for a specified service, optionally using a profile, to support autonomous login.

Instructions

Generate 2FA code for a service

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": {
      "service": "<service>"
    },
    "name": "generate_2fa"
  }
}

Input Schema

NameRequiredDescriptionDefault
profileNoProfile name (optional)default
serviceYesService name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does not disclose whether code generation is time-based, how long a code is valid, whether the profile must already contain stored credentials, or whether an error occurs for unknown services — all essential behavior for a 2FA tool.

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

Conciseness3/5

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

The single sentence is front-loaded and free of padding, but it is under-specified rather than concise; there is room for a brief clause on validity window or credential prerequisite without bloat.

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

Completeness3/5

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

For a two-parameter tool with no annotations and no output schema, the description is minimally adequate: an agent knows to supply a service and optionally a profile. It omits what the return value looks like (code string, expiry) and failure conditions, which matter here since no structured fields cover them.

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 both parameters are documented in the schema, including the profile default. The description adds only that the code is generated "for a service," which marginally reinforces the required parameter but adds no format or lookup semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb+resource ("Generate 2FA code") for a named input ("a service"), which is clearer than the bare name. However, it does not distinguish this tool from siblings like get_credentials or validate_credentials, and "2FA code" is not defined (TOTP? one-time code?).

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no mention of alternatives such as get_credentials or validate_credentials. The only implied context is that a service name is required.

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