Skip to main content
Glama

Mailrun Agent Identity

List text messages

list_sms
Read-onlyIdempotent

Text messages received on an identity's phone number, newest first: sender, time, segments and length (no text; get_sms returns text for 26 hours after Mailrun receives it, or 30 days with retain_content enabled). Filter by party (sender number); receive-only, sending texts is not available.

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": {
      "identity_id": "<identity_id>"
    },
    "name": "list_sms"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size, 1-100 (default 25).
partyNoExact sender number (E.164).
cursorNoOpaque next_cursor from the previous page.
identity_idYesIdentity id from list_identities.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds non-obvious behavior: body text is deliberately omitted, results are newest-first, and a sibling is needed to read content within a retention window. It stops short of explaining whether listing itself is bounded by the retention window or how pagination terminates.

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?

A single dense sentence with the resource and ordering front-loaded, and the retention caveat in a parenthetical that earns its place. The nested parenthetical and clause stacking make it slightly harder to parse than it needs to be, but there is no filler.

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 enumerates the returned fields (sender, time, segments, length) and notes the absence of text. Combined with the filter and capability constraints, an agent has everything needed to call it correctly despite the 4-parameter surface.

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 limit, cursor, identity_id and party are all documented in the schema. The description only restates the party filter as 'sender number', which the schema already specifies as exact E.164, adding no new semantics. Baseline 3 applies 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 the specific resource (text messages received on an identity's phone number), the ordering (newest first), the fields returned, and explicitly contrasts itself with get_sms. An agent can distinguish it from list_messages and get_sms without opening any schema.

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_sms for message text, valid for 26 hours after receipt or 30 days with retain_content enabled. It also states the tool is receive-only and that sending is not available, ruling out a whole class of misuse, and names the party filter as the narrowing mechanism.

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