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

@omnidim-ai/mcp-server

by Omnidim

createWhatsappTemplate

Creates a WhatsApp message template on a direct Meta number and submits it to WhatsApp for review; templates start as pending and require approval before sending.

Instructions

Create a message template on a direct Meta number and send it to WhatsApp for review.

It answers the new template with status pending. WhatsApp usually reviews it within minutes. Run syncWhatsappTemplates later to see the result. Only an approved template can be sent.

The number must list template_create in its capabilities.

For an image or document header, upload the file with POST /whatsapp/media first and pass its media_id in header_media. AI assistants connected through MCP can't upload files, so they create text headers only. Create a video header, an authentication template, or a link that changes per message in the dashboard.

(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": {
      "number_id": "<number_id>",
      "name": "<name>",
      "language": "<language>",
      "category": "<category>",
      "body": "<body>"
    },
    "name": "createWhatsappTemplate"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe message text. Placeholders are numbered from `{{1}}` with no gaps, such as `Hi {{1}}, your order {{2}} has shipped.`
nameYesLower-case letters, digits and underscores, such as `order_update`. It must not be on the number already, in any language.
footerNoOptional footer text, with no placeholders.
headerNoOptional header text. It can hold one placeholder, `{{1}}`. Send `header` or `header_media`, not both.
buttonsNo
categoryYes`utility` is for an update the customer expects, such as an order or appointment. `marketing` is for anything else. WhatsApp can change the category when it reviews the template.
languageYesWhatsApp language code, such as `en`, `en_US` or `hi`.
number_idYesId of a WhatsApp number in your workspace, from [listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers). A number in another workspace answers `404`.
body_examplesNoOne sample value per body placeholder, in order. Required when the body has placeholders.
header_exampleNoSample value for the header's `{{1}}`. Required when the header has one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.26.0

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 by disclosing the full lifecycle (returns pending, WhatsApp reviews within minutes, requires approved status to send), the prerequisite capability 'template_create' on the number, the 404 behavior for a number in another workspace, and the prerequisite upload step. The annotations only say it is a non-destructive write with no open-world hint, so this narrative context is the main source of behavioral understanding.

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?

Front-loads the action in the first sentence and keeps each following paragraph to a distinct concern (lifecycle, capability prerequisite, media limitations), so nothing is buried. It is slightly longer than strictly necessary, with the dashboard-alternatives paragraph being useful but verbose.

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 ten-parameter create tool with no output schema, it covers what an agent most needs: the returned status, the required follow-up call, the capability gate, and the media constraint that would otherwise cause a failed attempt. No essential calling information is missing.

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 90%, so most parameters are self-documenting; the description adds the capability constraint on number_id and clarifies that media headers must arrive as a media_id from an upload endpoint. Minor gap: it references 'header_media', a parameter not present among the ten schema properties, which could confuse a caller about how to send an image header.

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 ('Create a message template on a direct Meta number') plus the immediate consequence ('send it to WhatsApp for review'), which separates it from listWhatsappTemplates and syncWhatsappTemplates. The opening line alone lets an agent identify the operation.

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?

Gives explicit when-to-use and when-not-to-use guidance: run syncWhatsappTemplates afterward for the result, only approved templates can be sent, media headers require a prior POST /whatsapp/media, and MCP assistants must stay with text headers because video, authentication, and per-message links belong in the dashboard. These are concrete exclusions that route the caller away from this tool when it cannot do the job.

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