Skip to main content
Glama

Apumail — Email & SMS for AI Agents

read_inbox

List mails for an inbox. Returns up to limit mails with id > since, oldest first by default. Includes the extracted OTP per mail when one was found. Bumps the inbox TTL. If you just want to see what is in an inbox RIGHT NOW, pass order="desc" — the default ascending page on a busy inbox is its oldest mail, not its newest.

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": {
      "address": "<address>",
      "token": "<token>"
    },
    "name": "read_inbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax mails (1-500). Default 100.
orderNo"asc" (default) walks forward from `since` — use it to page with next_since and never miss a mail. "desc" returns the NEWEST `limit` mails instead; do not page with next_since when using it.
sinceNoSkip mails with id ≤ this. Default 0.
tokenYesThe inbox token.
addressYesThe inbox address.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses ordering, the id-based cursor, that extracted OTPs are attached per mail, and the non-obvious side effect that the call bumps the inbox TTL. It omits any statement about token/address authorization scope or failure behavior, and it references next_since without defining it.

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?

Three tightly packed sentences, front-loaded with purpose then pagination semantics then the practical warning. The order/desc guidance partially duplicates the enum description in the schema, and the capitalized 'RIGHT NOW' is stylistic, but nothing is wasted.

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 five-parameter read tool with no annotations and no output schema, the description covers return contents, ordering, cursor behavior, and a mutation-like side effect. The remaining gap is the undefined next_since cursor and the absence of any note on what a mail object contains.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it explains the practical consequence of the default ascending order on a busy inbox and ties since to paging via next_since. It does not explain where next_since comes from (presumably the last returned id), which is the one piece an agent actually needs.

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 opens with a specific verb and resource ('List mails for an inbox') and immediately pins down the scope (mails with id > since, oldest first). It implicitly separates itself from read_archived/read_sent/read_sms by naming the inbox as the source, but it never names an alternative tool, so an agent must infer the boundary rather than read it.

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?

Strong conditional guidance: 'If you just want to see what is in an inbox RIGHT NOW, pass order="desc"' tells the agent exactly which mode fits which intent, and it warns against paging with next_since in desc mode. It stops short of routing to sibling tools such as wait_for_mail or extract_latest_otp when those would be the better choice.

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