Skip to main content
Glama

Send Supabase phone codes over WhatsApp

set_supabase_hook
Destructive

Create or update the hook that lets a Supabase project send its phone sign-in and verification codes over WhatsApp instead of SMS. Supabase keeps making and checking the code; we deliver it. On Supabase Cloud, open Authentication → Auth Hooks, add a Send SMS hook of type HTTPS, and paste the answer's record.url and secret. If you host Supabase yourself, put record.url in GOTRUE_HOOK_SEND_SMS_URI and secret in GOTRUE_HOOK_SEND_SMS_SECRETS, then set GOTRUE_HOOK_SEND_SMS_ENABLED: "true". The secret comes back ONCE, on the first save or when you rotate it; after a rotation the old one keeps working for 24 hours. Codes are metered under the API key that saves the hook. Each code is a normal message: it counts toward your quota, and the first code to someone the number has never talked to uses one of its new conversations for the day. Free to call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_supabase_hook"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberIdNoThe number codes are sent from. `null` uses your one connected number. Leave it out to keep the current choice.
templateNoThe message, with `{code}` where the code goes, e.g. "Your Acme code is {code}". `null` restores the default. Leave it out to keep the current one.
rotateSecretNoMint a new secret and return it. The old one keeps working for 24 hours, while you update Supabase.

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?

Annotations already flag destructiveHint=true, and the description justifies that by disclosing that the secret is returned only once, that a rotated secret keeps working for 24 hours during migration, and that omitted fields preserve the current choice. It further adds metering and quota consequences (codes billed under the saving API key, first contact consumes a new conversation) and notes the call itself is free.

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 is front-loaded in the first two sentences, followed by actionable setup detail and cost behavior. The Cloud and self-hosted configuration sentences are dense but each carries operational value; only the restatement of the 24-hour rotation window duplicates the schema and could be dropped.

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?

There is no output schema, so the description must explain return values, and it does: record.url and secret, including that the secret appears only on first save or rotation. Combined with the metering and configuration notes, an agent has everything needed to call this correctly and to advise on next steps.

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%, so numberId, template, and rotateSecret are already fully documented, including the 24-hour rotation grace period. The description repeats rotation behavior and mentions response fields (record.url, secret) rather than adding new meaning for the three inputs, so the baseline of 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 pair and resource: creates or updates the Supabase Send-SMS hook so codes go over WhatsApp. It also contrasts with the read-only sibling by implying persistence ('Create or update'), so an agent can tell it apart from get_supabase_hook without opening either 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?

Gives concrete when-to-use context plus the follow-up steps for both Supabase Cloud (Authentication → Auth Hooks, HTTPS Send SMS hook) and self-hosted (GOTRUE_HOOK_SEND_SMS_URI/SECRETS/ENABLED). It does not explicitly say when not to use it or point at get_supabase_hook for inspection, so it stops short of full routing guidance.

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