Skip to main content
Glama

List messages

list_messages
Read-onlyIdempotent

List messages in an inbox, newest first, received and sent. Returns {messages: [{id, thread_id, direction, from, to, subject, preview, attachments, created_at}], next_cursor}. Pass next_cursor back as cursor for older messages. Errors: not_found (inbox). Next: get_message for the full text, codes and links; reply to answer one. To wait for a message that has not arrived yet, use wait_for_email instead of polling this.

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": {
      "inbox_id": "<inbox_id>"
    },
    "name": "list_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many messages to return, newest first. 1 to 100, default 20.
cursorNoThe next_cursor from the previous page, to get older messages.
inbox_idYesInbox id, such as "ibx_01j9...".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds ordering (newest first), the exact response envelope including next_cursor, the pagination contract, and a specific error case (not_found on inbox) — real behavioral value beyond the annotations. It stops short of mentioning rate limits or page-size behavior beyond what the schema states.

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?

Front-loaded with purpose, then return shape, then pagination, then errors, then next steps — a deliberate and scannable ordering. The telegraphic 'Next:' and 'Errors:' style packs a lot into few words without redundancy.

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?

With no output schema, the description carries the return-value burden and does so by enumerating the message fields and next_cursor. Combined with the error case, pagination contract and sibling routing, an agent has everything needed to call this correctly on the first try.

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 inbox_id, limit and cursor are already documented with types, defaults and ranges. The description reinforces cursor semantics ('pass next_cursor back as cursor for older messages') but adds no format or constraint detail the schema lacks, which is the baseline-3 case.

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 messages in an inbox') plus scope qualifiers: newest first, both received and sent. It also implicitly distinguishes itself from get_message and wait_for_email, which are named later, so an agent can place it among its siblings immediately.

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

Usage Guidelines5/5

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

Gives explicit routing: use get_message for full text, reply to answer, and wait_for_email instead of polling when a message has not arrived. That is a concrete when-to-use-this vs when-to-use-another statement with a named exclusion, not just implied usage.

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