Skip to main content
Glama
AUI MCP Server

AUI MCP Server

by rpmccormick

Share AUI Widget via SMS or Email

aui_share_widget

Sends an existing AUI widget link via SMS or email when out-of-band delivery is explicitly requested; use embed URLs instead for in-chat or web-app display.

Instructions

Send an existing AUI widget link (cache_id from aui_generate_ui) to a recipient via Twilio A2P SMS (method='sms') or Mailgun email (method='email'). Call only when out-of-band phone/inbox delivery is explicitly requested; to show a widget inside chat or a web app, return embed_url from aui_generate_ui or aui_get_status instead. Non-idempotent external side effect: immediately dispatches a live SMS or email that cannot be unsent, deducts 1 credit from aui_api_key (trial-... or svsrva-key-... required; keyless sandbox is rejected), and enforces 120 req/15m per-IP rate limits. Custom message text requires a paid svsrva-key-... (trial-... keys omit message and append a trial footer). Returns { success, method, to, cache_id, embed_url } or { success: false, error } on invalid key, zero credits, or carrier/provider failure.

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": {
      "aui_api_key": "<aui_api_key>",
      "cache_id": "<cache_id>",
      "method": "<method>",
      "to": "<to>"
    },
    "name": "aui_share_widget"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination E.164/10-digit US phone number (e.g. `+18045550199`) when `method='sms'`, or email address (`user@domain.com`) when `method='email'`.
methodYesOutbound channel: `'sms'` (Twilio A2P text message) or `'email'` (Mailgun transactional email).
messageNoOptional custom note prepended above the widget link (honored on paid `svsrva-key-...` keys only; ignored on `trial-...` keys).
cache_idYesExisting `chk_...` widget ID returned by `aui_generate_ui`.
aui_api_keyYesActive `trial-...` or paid `svsrva-key-...` (costs 1 credit per send; keyless sandbox is not permitted).

Output Schema

NameRequiredDescriptionDefault
toNoNormalized recipient phone number or email address.
errorNoError reason when `success` is false (missing credits, invalid key, or provider error).
methodNoChannel used for delivery.
successYesTrue when Twilio or Mailgun accepted the outbound message.
cache_idNoShared `chk_...` widget ID.
embed_urlNoPublic HTTPS widget URL delivered to the recipient.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.6.3

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses that the send is irreversible ('cannot be unsent'), costs 1 credit, requires a trial or paid key with keyless sandbox rejected, and is rate limited at 120 req/15m per IP. Also explains the trial-key degradation (custom `message` dropped, footer appended) and the failure cases, which the annotations cannot convey.

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?

Purpose and routing guidance are front-loaded, followed by side effects and constraints, with no filler sentences. It is dense and parenthesis-heavy, which costs a little readability, but every clause carries operational information.

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 non-idempotent external-side-effect tool with 5 parameters, the definition covers cost, auth tiers, rate limits, failure modes, and channel selection. An output schema exists, yet the brief return summary is a bonus rather than a crutch.

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 100%, so the schema already carries most parameter meaning and 3 would be the baseline. The description still adds value by tying `aui_api_key` to credit deduction and key tiers, and by clarifying that `message` is not merely optional but silently replaced with a trial footer on `trial-...` keys.

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?

Opens with a specific verb and resource ('Send an existing AUI widget link ... to a recipient'), names the source of `cache_id` (`aui_generate_ui`), and enumerates the two delivery channels. An agent can distinguish it from the sibling generation/status tools 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 Guidelines5/5

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

States an explicit use condition ('Call only when out-of-band phone/inbox delivery is explicitly requested') and an explicit non-use path, routing in-chat/web rendering to `embed_url` from `aui_generate_ui` or `aui_get_status`. Alternatives and exclusions are both present.

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