Skip to main content
Glama
@omnidim-ai/mcp-server

@omnidim-ai/mcp-server

by Omnidim

importWhatsappNumbers

Destructive

Connects WhatsApp Business numbers to your account using a Meta access token and phone number IDs; add an app secret to enable incoming replies.

Instructions

Connect numbers from your WhatsApp Business Account with your Meta access token.

List the numbers first with Preview numbers, then pass the ids you want.

The token must never expire and must carry both whatsapp_business_management and whatsapp_business_messaging. A system user token does. Add app_secret to receive replies. Without it the number can send but not receive.

Connecting a number again updates it. Send a new access_token or app_secret to change either. One number failing does not stop the others. It is listed in failed with the reason.

(Tags: WhatsApp)

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": {
      "waba_id": "<waba_id>",
      "access_token": "<access_token>",
      "phone_number_ids": "<phone_number_ids>"
    },
    "name": "importWhatsappNumbers"
  }
}

Input Schema

NameRequiredDescriptionDefault
waba_idYesYour WhatsApp Business Account id, from WhatsApp Manager.
app_secretNoYour Meta app's secret. Turns on replies. Stored, never returned.
access_tokenYesA Meta access token that never expires, with both WhatsApp permissions. Stored, never returned.
phone_number_idsYesMeta's ids for the numbers to connect, as Preview numbers lists them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.22.0
    • addedInput schema / properties / access_token
      Added value: +{
      +  "description": "A Meta access token that never expires, with both WhatsApp permissions. Stored, never returned.",
      +  "type": "string"
      +}
    • addedInput schema / properties / app_secret
      Added value: +{
      +  "description": "Your Meta app's secret. Turns on replies. Stored, never returned.",
      +  "type": "string"
      +}
    • addedInput schema / properties / phone_number_ids
      Added value: +{
      +  "description": "Meta's ids for the numbers to connect, as Preview numbers lists them.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • removedInput schema / properties / requestBody
      Removed value: -{
      -  "description": "The JSON request body.",
      -  "properties": {
      -    "access_token": {
      -      "description": "A Meta access token that never expires, with both WhatsApp permissions. Stored, never returned.",
      -      "type": "string"
      -    },
      -    "app_secret": {
      -      "description": "Your Meta app's secret. Turns on replies. Stored, never returned.",
      -      "type": "string"
      -    },
      -    "phone_number_ids": {
      -      "description": "Meta's ids for the numbers to connect, as Preview numbers lists them.",
      -      "items": {
      -        "type": "string"
      -      },
      -      "minItems": 1,
      -      "type": "array"
      -    },
      -    "waba_id": {
      -      "description": "Your WhatsApp Business Account id, from WhatsApp Manager.",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "waba_id",
      -    "access_token",
      -    "phone_number_ids"
      -  ],
      -  "type": "object"
      -}
    • addedInput schema / properties / waba_id
      Added value: +{
      +  "description": "Your WhatsApp Business Account id, from WhatsApp Manager.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "requestBody"
      -]New value: +[
      +  "waba_id",
      +  "access_token",
      +  "phone_number_ids"
      +]
  2. Addedv0.19.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations by disclosing credential constraints (token must never expire, must carry both whatsapp_business_management and whatsapp_business_messaging, system user token satisfies this), the receive-vs-send consequence of omitting app_secret, idempotent update behavior, and partial-failure semantics (one failure does not abort the batch; it appears in `failed` with a reason).

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?

Short front-loaded paragraphs with the alternative-tool pointer first and credential rules second; no filler sentences. Minor drag from the trailing "(Tags: WhatsApp)" line and a parenthetical link that interrupts the workflow sentence.

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 mutating, open-world batch import with no output schema, the description covers prerequisites, auth requirements, re-run behavior, and how failures are reported — enough for an agent to call it correctly and interpret the result without further documentation.

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 already 100%, yet the description adds operational meaning: access_token must be non-expiring with both permissions, app_secret is what enables inbound replies and is stored/never returned, and phone_number_ids must come from the preview call. These are constraints the schema field text only partially conveys.

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 concrete verb+resource — connecting WhatsApp Business numbers using a Meta access token — and immediately frames the prerequisite call ("List the numbers first with Preview numbers ... then pass the ids you want"), which cleanly separates it from previewWhatsappNumbers and listWhatsappNumbers.

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 an explicit ordering rule (preview first, then pass ids) and clarifies the re-run semantics ("Connecting a number again updates it"), which is exactly what an agent needs to avoid duplicate-import mistakes. It does not state exclusions (e.g., that non-WhatsApp providers use other import tools), so it stops short of full when/when-not coverage.

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

Deploy Server

Other Tools