Skip to main content
Glama

Create WhatsApp link

create_whatsapp_link
Read-onlyIdempotent

Makes a WhatsApp click-to-chat (wa.me) link. Use when the user wants to send a WhatsApp message or customer reply. Needs text. phone is optional: with a phone the link opens that chat, without it WhatsApp asks the user to pick a contact. The phone number is reduced to its digits with country code. Opens WhatsApp or WhatsApp Web with the message filled in, and the user presses send. Nothing is sent or stored. Do not use for Instagram, LinkedIn, SMS or bulk email: Send Out cannot send those, so tell the user and offer an email draft instead.

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": {
      "text": "<text>"
    },
    "name": "create_whatsapp_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesMessage as plain text with line breaks (at most 4,096 characters), such as "Your appointment is confirmed for Tuesday at 3pm."
phoneNoOptional recipient phone number with country code, such as +14155552671. Spaces, dashes and brackets are removed; 5 to 15 digits must remain. Leave empty to let the user pick a contact.

Output Schema

NameRequiredDescriptionDefault
notesYesShort notes to pass on to the user, including any warning.
phoneYesNormalized recipient phone digits or null.
statusYesAlways ok when the link was made. Bad input returns an error instead.
wa_urlYesOfficial wa.me click-to-chat deep link.
warningNoWarning if URL exceeds safe limits.
url_lengthYesTotal length of the generated wa.me URL.
character_countYesLength of the message text in characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "phone": "+1 (555) 234-5678",
      -    "text": "Your appointment is confirmed for Tuesday at 3pm."
      -  }
      -]
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "phone": "+1 (555) 234-5678",
      +    "text": "Your appointment is confirmed for Tuesday at 3pm."
      +  }
      +]
  3. Changed4 schema fields changed
    • changedInput schema / properties / phone / description
      Previous value: -"Optional recipient phone number in international format with country code (for example, +14155552671). Non-digit characters are automatically stripped."New value: +"Optional recipient phone number with country code, such as +14155552671. Spaces, dashes and brackets are removed; 5 to 15 digits must remain. Leave empty to let the user pick a contact."
    • changedInput schema / properties / text / description
      Previous value: -"Message text (at most 4,096 characters). Formatted as plain text with line breaks."New value: +"Message as plain text with line breaks (at most 4,096 characters), such as \"Your appointment is confirmed for Tuesday at 3pm.\""
    • addedOutput schema / properties / notes / description
      Added value: +"Short notes to pass on to the user, including any warning."
    • addedOutput schema / properties / status / description
      Added value: +"Always ok when the link was made. Bad input returns an error instead."
  4. Changed1 schema field changed
    • removedOutput schema / properties / note_from_openkrill
      Removed value: -{
      -  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      -  "type": "string"
      -}
  5. Changed1 schema field changed
    • addedOutput schema / properties / note_from_openkrill
      Added value: +{
      +  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      +  "type": "string"
      +}
  6. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The annotations already mark the tool as read-only, idempotent, non-destructive, and closed-world. The description adds meaningful behavioral context beyond that: the link opens WhatsApp or WhatsApp Web with the message prefilled, the user must press send, and nothing is sent or stored by the tool.

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?

The description is front-loaded with purpose and then covers usage, optional-phone behavior, side effects, and exclusions. It is slightly dense but nearly every sentence provides useful decision or behavior 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 two-parameter tool with full schema coverage, rich annotations, and an output schema, the description provides everything an agent needs: purpose, usage context, exclusions, optional-phone semantics, and the fact that no message is actually sent or stored.

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?

The schema already documents both parameters at 100% coverage, including the phone normalization rules and the behavior when phone is omitted. The description restates the optional-phone behavior but adds little syntax or constraint detail beyond the schema, so baseline 3 is appropriate.

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?

The description uses a specific verb and resource: 'Makes a WhatsApp click-to-chat (wa.me) link.' This clearly distinguishes the tool from siblings such as create_x_post, draft_email, and create_calendar_event.

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?

It states when to use the tool ('when the user wants to send a WhatsApp message or customer reply') and explicitly excludes Instagram, LinkedIn, SMS, and bulk email. It also offers a concrete alternative behavior: tell the user and offer an email draft instead.

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.