Skip to main content
Glama

Get a text message

get_sms
Read-onlyIdempotent

Read a text message's current state by ID.

Returns the message record, including delivery status, or an error.

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": {
      "sms_id": "<sms_id>"
    },
    "name": "get_sms"
  }
}

Input Schema

NameRequiredDescriptionDefault
sms_idYesText message ID, from ``send_sms`` or ``list_sms``.
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. Changed3 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "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"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / title
      Removed value: -"get_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. First observed

TDQS

A3.5/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 structurally. The description adds modest value by noting the response includes delivery status and that failures surface as an error, but says nothing about permissions, retention, or lookup-miss behavior beyond the generic "error".

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 action and key front-loaded, and the second sentence covering the return contract. Nothing is wasted, though the phrasing is slightly padded ("a text message's current state").

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?

This is a simple single-record read: an output schema exists, so return values need not be spelled out, and annotations cover the safety semantics. The description supplies the essential scope and is only missing explicit routing against list_sms.

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%, including the origin of sms_id ("from send_sms or list_sms") and the analytics purpose of llm_model, so the schema carries the parameter burden. The description adds no format, validation, or usage detail for either parameter beyond what is already documented.

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 ("Read a text message") plus the lookup key ("by ID") and the returned content ("message record, including delivery status"). It is clear on its own, but it never names or contrasts with the obvious sibling list_sms, so an agent must infer the single-vs-list distinction.

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: "current state" hints at re-fetching a known message to poll delivery status, which is the natural use case. There is no explicit when-to-use, when-not-to-use, or pointer to list_sms for enumeration versus this tool for a single known ID.

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.