Skip to main content
Glama

List text messages

list_sms
Read-onlyIdempotent

List recent workspace text messages and their delivery states.

    A message ID in the results identifies the same record in ``get_sms``.

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_sms"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoOnly items sent to this E.164 phone number.
limitNoMaximum records returned on this page.
cursorNoPagination cursor: the ``next_cursor`` from the previous page. Omitted: the first page.
statusNoOnly messages currently in this status; ``received`` means inbound. Omitted: every status.
llm_modelNoThe calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / llm_model / description
      Previous value: -"Model ID of the calling agent. Optional. Recorded for analytics only."New value: +"The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
  2. Changed5 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"How many items one page holds. ``next_cursor`` in the response points to the next page."New value: +"Maximum records returned on this page."
    • addedOutput schema / $defs
      Added value: +{
      +  "SmsResponse": {
      +    "properties": {
      +      "agent_id": {
      +        "anyOf": [
      +          {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "The agent this text belongs to: the number's text agent on inbound texts, the agent that wrote it on outbound texts. Null when no agent is involved.",
      +        "title": "Agent Id"
      +      },
      +      "body": {
      +        "description": "Message text.",
      +        "title": "Body",
      +        "type": "string"
      +      },
      +      "direction": {
      +        "description": "'outbound' for messages Hail sent, 'inbound' for messages received.",
      +        "enum": [
      +          "outbound",
      +          "inbound"
      +        ],
      +        "title": "Direction",
      +        "type": "string"
      +      },
      +      "error_code": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Carrier error code if delivery failed. Null on success or while pending.",
      +        "title": "Error Code"
      +      },
      +      "from_e164": {
      +        "description": "Sender phone number, E.164 format.",
      +        "title": "From E164",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "Unique identifier for this message.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "organization_id": {
      +        "description": "Organization that sent or received this message.",
      +        "format": "uuid",
      +        "title": "Organization Id",
      +        "type": "string"
      +      },
      +      "provider_message_sid": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "The carrier/provider's identifier for this message, if assigned.",
      +        "title": "Provider Message Sid"
      +      },
      +      "requested_at": {
      +        "description": "When the send was requested, ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Requested At",
      +        "type": "string"
      +      },
      +      "segment_count": {
      +        "description": "Number of carrier SMS segments the body was split into.",
      +        "title": "Segment Count",
      +        "type": "integer"
      +      },
      +      "sent_at": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "When the message was handed to the carrier, ISO 8601 timestamp. Null until sent.",
      +        "title": "Sent At"
      +      },
      +      "status": {
      +        "description": "Delivery status: 'queued', 'sent', 'delivered', 'failed', 'undelivered', or 'received' (inbound messages).",
      +        "enum": [
      +          "queued",
      +          "sent",
      +          "delivered",
      +          "failed",
      +          "undelivered",
      +          "received"
      +        ],
      +        "title": "Status",
      +        "type": "string"
      +      },
      +      "to_e164": {
      +        "description": "Recipient phone number, E.164 format.",
      +        "title": "To E164",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "organization_id",
      +      "from_e164",
      +      "to_e164",
      +      "direction",
      +      "agent_id",
      +      "status",
      +      "body",
      +      "provider_message_sid",
      +      "segment_count",
      +      "error_code",
      +      "requested_at",
      +      "sent_at"
      +    ],
      +    "title": "SmsResponse",
      +    "type": "object"
      +  }
      +}
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "items": {
      +        "description": "Messages in this page, newest first.",
      +        "items": {
      +          "$ref": "#/$defs/SmsResponse"
      +        },
      +        "title": "Items",
      +        "type": "array"
      +      },
      +      "next_cursor": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Opaque cursor for the next page. Null when there are no more results.",
      +        "title": "Next Cursor"
      +      }
      +    },
      +    "required": [
      +      "items",
      +      "next_cursor"
      +    ],
      +    "title": "SmsListResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / title
      Removed value: -"list_sms_toolDictOutput"
  3. Changed1 schema field changed
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "Model ID of the calling agent. Optional. Recorded for analytics only.",
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Number of items per page."New value: +"How many items one page holds. ``next_cursor`` in the response points to the next page."
  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 readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds that each result carries a delivery state and that IDs are stable across tools, but says nothing about ordering, result volume, or that the list is scoped to the workspace beyond the word "workspace".

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, front-loaded with purpose and followed by the useful cross-tool ID note. Nothing is padded, though the second sentence is a navigational hint rather than core purpose and could be folded into the first.

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?

An output schema exists, so the description need not explain return values, and all filter/pagination semantics live in a fully-covered input schema. With read-only, idempotent annotations supplied, nothing an agent needs in order to invoke this listing tool correctly is missing.

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 all five parameters (to, limit, cursor, status, llm_model) are already documented in the schema with defaults and enum values. The description contributes nothing about parameter behavior, so the 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?

The description names a specific verb and resource ("List recent workspace text messages") and adds that results carry delivery states. The cross-reference to ``get_sms`` implicitly separates the collection view from the single-record view, though it stops short of an explicit statement that get_sms is the per-message lookup.

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 only implied: an agent infers this is the discovery/listing call and that get_sms retrieves a specific record by the returned ID. There is no explicit when-to-use, no when-not-to-use, and no guidance on which of the schema filters to prefer for a given task.

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.