Skip to main content
Glama

messages_list

Paginated message list ordered by ?sort= (default -updated). Each message is one email for one lead x one campaign step.

Status codes (outbound): 0=NEW, 9=REVIEW_REQUIRED, 10=APPROVED, 20=SENT, 30=DELIVERED, 40=READ, 50=UNSUBSCRIBED, 100=FAILED, 110=SOFT_BOUNCED, 500=CANCELED. Status codes (inbound): 200=NEW_INCOMING (reply received), 210=ACKNOWLEDGED.

Inbox view: ?direction=1 returns only incoming messages (replies). Combine with ?status=200 for unacknowledged replies.

Response includes status_message (human-readable reason for terminal statuses, e.g. SMTP rejection text on FAILED) and review (AI review verdict when available).

Paginated: ?page= and ?per_page= (default 25) returning {count, num_pages, page, per_page, results}.

Method: GET /api/v1/workspaces/{workspace_sqid}/messages/

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

Input Schema

NameRequiredDescriptionDefault
qNoSubstring search in subject, body, lead name, contact.
pageNoPage number (default 1).
sortNoSort key (prefix - for desc). Keys: created, updated, sent, scheduled, subject, lead, campaign, step, status. Default: -updated.
statusNoFilter by Message.status: 0=NEW, 9=REVIEW_REQUIRED, 10=APPROVED, 20=SENT, 30=DELIVERED, 40=READ, 50=UNSUBSCRIBED, 100=FAILED, 200=NEW_INCOMING, 210=ACKNOWLEDGED, 500=CANCELED.
per_pageNoResults per page (default 25).
directionNo0=outgoing, 1=incoming.
lead_sqidNoFilter to one lead.
step_sqidNoFilter to one sequence step.
campaign_sqidNoFilter to one campaign.
campaign_log_sqidNoFilter to one campaign log entry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonably well: it discloses the HTTP method (`GET`), default pagination and sort behavior, response envelope shape (`{count, num_pages, page, per_page, results}`), and extra response fields (`status_message`, `review`). It does not mention authorization requirements or pagination limits, but the core behavioral profile of a read-only list endpoint is clear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose and ordering, but a large portion of the status-code block duplicates the input schema almost verbatim. Since schema coverage is 100%, those repeated codes do not earn their space, even though the inbox-view recipe and response-field note are useful.

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 10-parameter list endpoint with no output schema, the description is largely complete: it covers pagination, sort defaults, status semantics, filtering combinations, and the shape of the response. It leaves minor gaps around authentication and maximum page-size constraints, but nothing critical for correct invocation.

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 already 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema by explaining how to combine `direction` and `status` to retrieve unacknowledged replies. It also documents the default sort and adds the missing `110=SOFT_BOUNCED` status code not present in the schema.

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 states a specific verb and resource: a paginated list of messages, ordered by `?sort=` with a default of `-updated`. It also clarifies the resource granularity (one email per lead x campaign step), though it does not explicitly distinguish this list tool from single-message siblings such as `messages_get`.

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

Usage Guidelines3/5

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

Usage is implied through the description of filtering and the inbox-view recipe (`?direction=1` with `?status=200`), but there is no explicit statement of when to use this tool instead of `messages_get` or other message operations. The guidance is practical for filtering but lacks direct routing guidance.

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.