Skip to main content
Glama

Mailrun Agent Identity

Delete a text message

delete_sms
DestructiveIdempotent

Delete one text received on the identity's number; its text body and sender number are erased from Mailrun immediately, without confirmation. Requires agent:identities.write or agent:*. The text no longer appears in list_sms or get_sms; get and repeat delete answer not_found. Pending webhook and email-copy deliveries are cancelled; a delivery already being sent may still arrive. Provider retries and Mailrun recovery do not store or deliver it again. Stored sms.received events remain with only sms_id. Carrier and provider records are unaffected. Returns the text's id and status deleted.

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

Input Schema

NameRequiredDescriptionDefault
sms_idYesText message id from list_sms or the sms.received event.
identity_idYesIdentity id from list_identities.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: no confirmation prompt, immediate body/sender erasure, required agent:identities.write or agent:* scope, subsequent not_found behavior, cancellation of pending webhook and email-copy deliveries, possible in-flight delivery race, no provider retry/recovery re-delivery, retained sms.received events with only sms_id, and untouched carrier/provider records. That is exactly the information an agent needs before invoking a destructive operation.

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?

Front-loaded with the destructive action and organized logically into effects-on-reads, delivery cancellation, event retention, and external scope. Slightly dense with some overlap between the 'provider retries/Mailrun recovery' and 'carrier and provider records' sentences, but no true filler.

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?

For a destructive, non-readOnly tool with no output schema, the description covers permissions, irreversibility, side effects on dependent deliveries, residual data, and the return value ('id and status deleted'). Nothing material is missing for correct invocation.

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 coverage is 100% and both parameters already document their sources (sms_id from list_sms/event, identity_id from list_identities). The description adds no syntax, format, or constraint detail beyond what the schema provides, so the baseline 3 applies.

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?

States a specific verb and resource ('Delete one text received on the identity's number') and scopes it to received texts, which separates it from the draft-deletion sibling. An agent can identify the operation without opening the schema.

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?

Makes the use case clear (hard-delete of a received text, ids sourced from list_sms or the sms.received event) and implies the boundary against draft/text-record deletions through the explicit 'received' scoping. It stops short of explicitly naming an alternative or stating when not to use it.

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.

Resources