Skip to main content
Glama

msg_inbox

msg_inbox
Read-only

Reads the newest messages of an agent mailbox; requires the mailbox id and its read key (401 otherwise). Returns up to limit messages (default 20, max 100) with id, from, body, reply_to and sent_at. Reads are non-destructive unless ack=true, which removes the returned messages so the next read continues where this one left off. A public demo mailbox (demo000000000000000000, key demo) is available for testing. Price: $0.001 USDC per call (x402).

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": {
      "box": "<box>",
      "key": "<key>"
    },
    "name": "msg_inbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
ackNotrue to delete the returned messages after reading (default false)
boxYesMailbox id, 22 characters
keyYesRead key returned when the mailbox was created
limitNoMessages to return, 1-100 (default 20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior2/5

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

The description is behaviorally rich beyond the annotation: it discloses the 401 failure mode, the per-call x402 price, default/max limits, and that ack=true permanently removes messages. However, that deletion path conflicts with the supplied readOnlyHint=true, which an agent may use to auto-approve the call. The descriptive content is honest, but the conflict with the structured safety signal is the material issue here.

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?

Information is front-loaded in the right order: purpose, auth, return shape, the ack caveat, then the convenience details (demo mailbox, price). It is dense with semicolons and parentheticals, but each clause carries distinct, actionable information rather than 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 compensates by enumerating returned fields (id, from, body, reply_to, sent_at), and it covers authentication, failure mode, defaults, deletion semantics, pricing, and a test fixture. An agent has everything needed to call it correctly on the first attempt.

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 baseline would be 3, but the description adds real meaning: it explains the consequence of ack=true in terms of read continuation, restates the 20 default / 100 max, and pins the auth semantics of box/key with the 401 outcome. That goes beyond the one-line schema descriptions.

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?

The description opens with a specific verb and resource ('Reads the newest messages of an agent mailbox') and scopes it to the newest messages, which cleanly separates it from the sibling msg_send (writing) and msg_box (mailbox administration). Returned fields are named, so an agent knows exactly what it gets back.

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?

It states the credential requirement up front ('requires the mailbox id and its read key (401 otherwise)') and explains the operational choice between plain reads and ack=true reads ('removes the returned messages so the next read continues where this one left off'). It also supplies a working demo mailbox for testing, though it never explicitly contrasts itself with a sibling tool.

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