Skip to main content
Glama

Sergio by Serviche

Retry a text that failed to send (after your person confirms)

retry_text
DestructiveIdempotent

Retries one of our texts that failed to send (delivery_status 'failed'), as the same message, on your person's order. A text marked 'undelivered' was refused for good and cannot be retried: send a new text instead. Read the message first and pass its exact to (phone_to) and body. First call without confirm_token: nothing is sent; you get a preview and a confirm_token. Show your person the preview word for word, and only after they say yes, call again with the same arguments and the SAME idempotency_key, plus confirm_token.

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": {
      "message_id": "<message_id>",
      "to": "<to>",
      "body": "<body>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "retry_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
bodyYes
message_idYes
confirm_tokenNoFrom the preview, after your person said yes. Leave it out to get the preview.
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say destructive/idempotent/openWorld, but the description discloses the crucial behavior that the first call is a dry run ('nothing is sent') and returns a preview plus confirm_token, and that the second call must reuse the SAME idempotency_key. That is substantial context the agent could not get from the annotations, and it does not contradict destructiveHint=true.

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?

Dense and front-loaded: the eligibility rule comes first, then the data-source instruction, then the confirm flow. Every sentence carries needed information, though the run-on structure and the stray 'phone_to' label add slight friction.

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?

For a 5-parameter, no-output-schema mutation with a confirmation handshake, the description covers the eligibility rule, argument sourcing, and the full two-call protocol. It stops short of describing what the preview contains or what happens if the confirmed call fails, but the essentials to invoke it correctly are present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 40%, and the description compensates well by explaining where message_id, to, body, confirm_token, and idempotency_key come from and when each is supplied. However, it refers to the recipient as 'phone_to' while the schema property is 'to', a naming mismatch that could cause a mis-filled argument.

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 ('Retries one of our texts that failed to send') plus the exact precondition (delivery_status 'failed') and the constraint that it resends the same message. It is clearly distinguishable from send_text, which the description implicitly routes to for the 'undelivered' case.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use and when-not-to-use: 'undelivered' was refused for good and must become a new text instead. It also prescribes the ordering (read the message first, pass its exact to and body) and the two-step confirm protocol, leaving nothing to inference.

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