Skip to main content
Glama

List recent messages

list_messages
Read-only

List recent messages, newest first, optionally only those sent to one address. Returns the id, sender, subject, extracted code and times of each message, not the body; expired messages are left out. Call get_message with an id to read one.

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": "list_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoFull recipient address, e.g. signup-42@otp.example.com. Case-insensitive.
limitNoHow many messages to return (default 10).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare this is a read-only, closed-world operation, so the description's job is to add context, and it does: newest-first ordering, expired messages excluded, and the body deliberately omitted. What it doesn't cover is pagination beyond `limit` or whether a returned "code" is null when no code is found, which would matter to a caller.

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?

Three short sentences with the primary behavior first, the return shape second, and the hand-off third. Nothing is redundant and no sentence could be dropped without losing information.

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

Completeness5/5

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

There is no output schema, so the description carries the burden of describing the return value, and it enumerates the fields (id, sender, subject, code, times) while noting the body is absent. For a two-optional-parameter list tool with read-only annotations, nothing essential is missing.

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% and the schema already documents both `to` (with an example and case-insensitivity) and `limit` (default and bounds), so the description adds no syntax or format detail beyond saying the filter is optional. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb and resource ("List recent messages") plus the ordering (newest first) and an optional recipient filter, so the agent can tell it apart from get_message, which reads a single message, and from get_latest_otp.

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?

Explicitly routes the agent to get_message when it needs a body, and the optional `to` filter implies the unfiltered listing use case. It does not explicitly say when to prefer get_latest_otp or list_domains, but the context is clear enough for selection.

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