Skip to main content
Glama

List messages

list_messages
Read-onlyIdempotent

List your messages, newest first. Filter by number, direction, status, failure reason, date, batch schedule or customer.

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

Input Schema

NameRequiredDescriptionDefault
toNoExact destination number (E.164)
tagNoFilter to messages sent with this tag
fromNoExact sending number (E.164)
limitNoMax results (default 25, max 100)
cursorNonext_cursor from the previous page
numberNoFilter to messages to or from this number
statusNoOnly messages with this status
directionNooutbound (sent) or inbound (received)
customer_idNoFilter to one customer's messages
schedule_idNoFilter to the occurrences of one recurring schedule (sch_...)
failure_codeNoFilter to messages that failed for this reason (the `failure.code` on a message)
created_afterNoInclusive. ISO timestamp or epoch ms.
blocked_reasonNoBlocked messages with this reason. Implies status=blocked.
created_beforeNoExclusive. ISO timestamp or epoch ms.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / direction / description
      Added value: +"outbound (sent) or inbound (received)"
    • addedInput schema / properties / status / description
      Added value: +"Only messages with this status"
  2. Changed1 schema field changed
    • changedInput schema / properties / blocked_reason / enum
      Previous value: -[
      -  "account_closed",
      -  "account_suspended",
      -  "account_paused",
      -  "opted_out",
      -  "destination_not_allowed",
      -  "voip_number",
      -  "toll_free_destination",
      -  "sender_not_registered",
      -  "campaign_mismatch",
      -  "rate_limited",
      -  "recipient_not_verified",
      -  "quiet_hours",
      -  "consent_required",
      -  "reconfirmation_pending",
      -  "reconfirmation_expired",
      -  "campaign_paused",
      -  "sender_rotation",
      -  "content_blocked",
      -  "screen_unavailable",
      -  "held_for_review",
      -  "review_rejected",
      -  "review_expired",
      -  "quota_exceeded",
      -  "spend_limit_reached",
      -  "insufficient_credits",
      -  "billing_required",
      -  "topic_unsubscribed"
      -]New value: +[
      +  "account_closed",
      +  "account_suspended",
      +  "account_paused",
      +  "opted_out",
      +  "destination_not_allowed",
      +  "voip_number",
      +  "toll_free_destination",
      +  "toll_free_unverified",
      +  "sender_not_registered",
      +  "campaign_mismatch",
      +  "rate_limited",
      +  "recipient_not_verified",
      +  "quiet_hours",
      +  "consent_required",
      +  "reconfirmation_pending",
      +  "reconfirmation_expired",
      +  "campaign_paused",
      +  "sender_rotation",
      +  "content_blocked",
      +  "screen_unavailable",
      +  "held_for_review",
      +  "review_rejected",
      +  "review_expired",
      +  "quota_exceeded",
      +  "spend_limit_reached",
      +  "insufficient_credits",
      +  "billing_required",
      +  "topic_unsubscribed"
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / blocked_reason / enum
      Previous value: -[
      -  "account_closed",
      -  "account_suspended",
      -  "account_paused",
      -  "opted_out",
      -  "destination_not_allowed",
      -  "sender_not_registered",
      -  "campaign_mismatch",
      -  "rate_limited",
      -  "recipient_not_verified",
      -  "quiet_hours",
      -  "consent_required",
      -  "reconfirmation_pending",
      -  "reconfirmation_expired",
      -  "campaign_paused",
      -  "sender_rotation",
      -  "content_blocked",
      -  "screen_unavailable",
      -  "held_for_review",
      -  "review_rejected",
      -  "review_expired",
      -  "quota_exceeded",
      -  "spend_limit_reached",
      -  "insufficient_credits",
      -  "billing_required",
      -  "topic_unsubscribed"
      -]New value: +[
      +  "account_closed",
      +  "account_suspended",
      +  "account_paused",
      +  "opted_out",
      +  "destination_not_allowed",
      +  "voip_number",
      +  "toll_free_destination",
      +  "sender_not_registered",
      +  "campaign_mismatch",
      +  "rate_limited",
      +  "recipient_not_verified",
      +  "quiet_hours",
      +  "consent_required",
      +  "reconfirmation_pending",
      +  "reconfirmation_expired",
      +  "campaign_paused",
      +  "sender_rotation",
      +  "content_blocked",
      +  "screen_unavailable",
      +  "held_for_review",
      +  "review_rejected",
      +  "review_expired",
      +  "quota_exceeded",
      +  "spend_limit_reached",
      +  "insufficient_credits",
      +  "billing_required",
      +  "topic_unsubscribed"
      +]
    • changedInput schema / properties / failure_code / enum
      Previous value: -[
      -  "carrier_filtered",
      -  "unreachable",
      -  "invalid_number",
      -  "opted_out",
      -  "campaign_mismatch",
      -  "content_blocked",
      -  "screen_unavailable",
      -  "rate_limited",
      -  "landline",
      -  "carrier_rejected",
      -  "spend_limit_reached",
      -  "insufficient_credits",
      -  "billing_required",
      -  "sender_not_registered",
      -  "quiet_hours",
      -  "consent_required",
      -  "reconfirmation_pending",
      -  "reconfirmation_expired",
      -  "held_for_review",
      -  "review_rejected",
      -  "review_expired",
      -  "campaign_paused",
      -  "sender_rotation",
      -  "recipient_not_verified",
      -  "quota_exceeded",
      -  "destination_not_allowed",
      -  "account_closed",
      -  "account_suspended",
      -  "account_paused",
      -  "topic_unsubscribed",
      -  "unknown"
      -]New value: +[
      +  "carrier_filtered",
      +  "unreachable",
      +  "invalid_number",
      +  "opted_out",
      +  "campaign_mismatch",
      +  "content_blocked",
      +  "screen_unavailable",
      +  "rate_limited",
      +  "landline",
      +  "carrier_rejected",
      +  "spend_limit_reached",
      +  "insufficient_credits",
      +  "billing_required",
      +  "sender_not_registered",
      +  "quiet_hours",
      +  "consent_required",
      +  "reconfirmation_pending",
      +  "reconfirmation_expired",
      +  "held_for_review",
      +  "review_rejected",
      +  "review_expired",
      +  "campaign_paused",
      +  "sender_rotation",
      +  "recipient_not_verified",
      +  "quota_exceeded",
      +  "destination_not_allowed",
      +  "voip_number",
      +  "toll_free_destination",
      +  "toll_free_unverified",
      +  "account_closed",
      +  "account_suspended",
      +  "account_paused",
      +  "topic_unsubscribed",
      +  "unknown"
      +]
  4. Changed2 schema fields changed
    • changedInput schema / properties / blocked_reason / enum
      Previous value: -[
      -  "account_closed",
      -  "account_suspended",
      -  "account_paused",
      -  "opted_out",
      -  "destination_not_allowed",
      -  "sender_not_registered",
      -  "campaign_mismatch",
      -  "rate_limited",
      -  "recipient_not_verified",
      -  "quiet_hours",
      -  "consent_required",
      -  "reconfirmation_pending",
      -  "reconfirmation_expired",
      -  "campaign_paused",
      -  "sender_rotation",
      -  "content_blocked",
      -  "screen_unavailable",
      -  "held_for_review",
      -  "review_rejected",
      -  "review_expired",
      -  "quota_exceeded",
      -  "spend_limit_reached",
      -  "insufficient_credits",
      -  "topic_unsubscribed"
      -]New value: +[
      +  "account_closed",
      +  "account_suspended",
      +  "account_paused",
      +  "opted_out",
      +  "destination_not_allowed",
      +  "sender_not_registered",
      +  "campaign_mismatch",
      +  "rate_limited",
      +  "recipient_not_verified",
      +  "quiet_hours",
      +  "consent_required",
      +  "reconfirmation_pending",
      +  "reconfirmation_expired",
      +  "campaign_paused",
      +  "sender_rotation",
      +  "content_blocked",
      +  "screen_unavailable",
      +  "held_for_review",
      +  "review_rejected",
      +  "review_expired",
      +  "quota_exceeded",
      +  "spend_limit_reached",
      +  "insufficient_credits",
      +  "billing_required",
      +  "topic_unsubscribed"
      +]
    • changedInput schema / properties / failure_code / enum
      Previous value: -[
      -  "carrier_filtered",
      -  "unreachable",
      -  "invalid_number",
      -  "opted_out",
      -  "campaign_mismatch",
      -  "content_blocked",
      -  "screen_unavailable",
      -  "rate_limited",
      -  "landline",
      -  "carrier_rejected",
      -  "spend_limit_reached",
      -  "insufficient_credits",
      -  "sender_not_registered",
      -  "quiet_hours",
      -  "consent_required",
      -  "reconfirmation_pending",
      -  "reconfirmation_expired",
      -  "held_for_review",
      -  "review_rejected",
      -  "review_expired",
      -  "campaign_paused",
      -  "sender_rotation",
      -  "recipient_not_verified",
      -  "quota_exceeded",
      -  "destination_not_allowed",
      -  "account_closed",
      -  "account_suspended",
      -  "account_paused",
      -  "topic_unsubscribed",
      -  "unknown"
      -]New value: +[
      +  "carrier_filtered",
      +  "unreachable",
      +  "invalid_number",
      +  "opted_out",
      +  "campaign_mismatch",
      +  "content_blocked",
      +  "screen_unavailable",
      +  "rate_limited",
      +  "landline",
      +  "carrier_rejected",
      +  "spend_limit_reached",
      +  "insufficient_credits",
      +  "billing_required",
      +  "sender_not_registered",
      +  "quiet_hours",
      +  "consent_required",
      +  "reconfirmation_pending",
      +  "reconfirmation_expired",
      +  "held_for_review",
      +  "review_rejected",
      +  "review_expired",
      +  "campaign_paused",
      +  "sender_rotation",
      +  "recipient_not_verified",
      +  "quota_exceeded",
      +  "destination_not_allowed",
      +  "account_closed",
      +  "account_suspended",
      +  "account_paused",
      +  "topic_unsubscribed",
      +  "unknown"
      +]
  5. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds the newest-first ordering and the filterable dimensions, but says nothing about pagination behavior, result caps, or the cost of broad queries, which matter for a 14-param list endpoint.

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?

Two short sentences with the purpose front-loaded and no filler. The second sentence is a bare enumeration that largely restates schema fields, so it earns its place only partially.

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?

Annotations cover safety and idempotency, the schema fully documents all 14 parameters including pagination inputs, and there is no output schema to explain. What remains missing (return shape, pagination mechanics) is minor, so the description is complete enough to call the tool correctly.

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 the schema already carries the meaning of all 14 parameters, including enums and cursor semantics. The description's filter list overlaps with the schema and omits to/from/tag/limit/cursor, adding little beyond what is already documented; baseline 3 applies.

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?

States a specific verb and resource (list your messages) plus the default ordering (newest first), which is a real detail beyond the name. It does not distinguish itself from siblings like get_message or list_scheduled_messages, so an agent has to infer the boundary.

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?

The filter enumeration implies usage (browse/query the message log) but gives no explicit when-to-use versus get_message (single lookup) or list_scheduled_messages (future sends). No exclusions or prerequisites are stated; usage is only inferable.

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.