Skip to main content
Glama

Apumail — Email & SMS for AI Agents

extract_latest_sms_otp

Convenience — return the OTP / verification code from the most recent SMS on this number (same extractor as email).

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": {
      "number": "<number>",
      "token": "<token>"
    },
    "name": "extract_latest_sms_otp"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesThe phone token.
numberYesThe phone number in E.164.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It says what is returned but not what happens when no SMS exists, when the latest SMS contains no OTP, whether the message is marked read or consumed, or whether errors are raised or empty values returned.

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?

One front-loaded sentence with no padding. The leading 'Convenience —' and the trailing parenthetical are slightly cryptic scaffolding rather than useful content, but the core statement is tight.

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 2-parameter read tool with no annotations and no output schema, the description covers the happy path but omits the outcomes an agent must handle: no OTP found, empty SMS list, and the shape of the returned value. Adequate but with clear gaps.

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 coverage is 100%, so 'number' (E.164) and 'token' are already documented in the schema. The description only adds that the OTP comes from 'this number', which confirms the number scopes the lookup but adds nothing about token handling or format.

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?

States a concrete verb+resource: return the OTP/verification code from the most recent SMS for a given number. That is specific enough to act on, but it never distinguishes itself from the near-identically named sibling extract_latest_otp, and the parenthetical 'same extractor as email' is ambiguous about which email-side tool it mirrors.

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 lead word 'Convenience' hints that this is a shortcut over read_sms plus manual parsing, but no alternative is named and no when-not condition is given. With an overlapping sibling (extract_latest_otp) present, the description leaves the routing decision entirely to inference.

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