Skip to main content
Glama
simrelay

SimRelay MCP Server

Official
by simrelay

Subscribe to Incoming SMS

subscribe_to_messages
Idempotent

Subscribe to receive incoming SMS messages in real-time via WebSocket, with optional filtering by SIM ID.

Instructions

Open (or reuse) a WebSocket subscription that streams new SMS for the authenticated user. Each incoming SMS is pushed as an MCP notifications/message (logger=simrelay-sms, level=info, JSON-encoded payload). Also kept in an internal ring buffer of the most recent 100. Pass sim_id to filter to a single SIM. Idempotent — calling again updates the filter and returns the current subscription state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sim_idNoOptional filter — only forward messages for this hosted_sim_id. Omit to receive all incoming SMS for the authenticated user.
Behavior5/5

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

Discloses WebSocket subscription, push notifications with format, internal ring buffer (100), and idempotent behavior. Annotations already indicate idempotency and non-destructive, but description adds rich context beyond annotations.

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

Conciseness5/5

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

Four sentences covering purpose, mechanism, parameter, and idempotency. No redundancy, every sentence adds value.

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?

Given one optional parameter, no output schema, and annotations covering safety, the description is complete. Explains streaming, notification format, buffer, and lifecycle without missing critical details.

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?

Single parameter sim_id is fully described in the schema (100% coverage). Description only restates 'filter to a single SIM,' adding no new semantics beyond schema.

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?

Description clearly states 'Open (or reuse) a WebSocket subscription that streams new SMS for the authenticated user.' It specifies incoming SMS, streaming, WebSocket, and distinguishes from sibling tools like get_sim_messages (batch query) and wait_for_next_sms (polling).

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?

Description explains filtering via sim_id and idempotency, implying use for streaming. However, it does not explicitly mention when to avoid or alternatives, though sibling context helps.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/simrelay/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server