Skip to main content
Glama

get_latest_otp

Retrieve the OTP code sent to an identifier via SMS or email to verify user input during end-to-end tests.

Instructions

Return the latest OTP code (SMS or email) sent to an identifier.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelNoany
test_idNo
identifierYes
Install Server

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description must disclose behavior itself. It states only that the latest OTP is returned; it does not mention whether retrieval is destructive, whether the code is marked as consumed, what happens if no OTP exists, or what the response contains.

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 description is a single front-loaded sentence with no filler. It is concise, though it achieves conciseness by omitting useful behavioral and parameter 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?

For a tool with no output schema, no annotations, and 0% schema coverage, the description is too thin to support correct invocation. An agent cannot tell what identifier format is expected, what channel accepts, what test_id does, or what the return payload looks like.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description needed to explain the parameters. It indirectly explains identifier ('sent to an identifier') but says nothing about channel values or test_id, leaving two of three parameters effectively undocumented.

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

Purpose4/5

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

The description uses a specific verb ('Return') and identifies the resource as the latest OTP code sent to an identifier, adding 'SMS or email' to clarify the code type. It does not explicitly distinguish itself from the sibling get_totp_code, so it loses the top score.

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?

The description implies retrieving the most recent SMS/email OTP for an identifier but gives no guidance on when to prefer this over get_totp_code or other OTP-related siblings, nor any exclusions. There is no explicit when-to-use or alternative routing.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/reiarseni/mockpost'

If you have feedback or need assistance with the MCP directory API, please join our Discord server