Skip to main content
Glama
1msg MCP

1msg MCP

Official
by 1msg

initiate_call

Handle inbound and outbound WhatsApp call actions—connect, accept, pre_accept, reject, terminate—using call IDs and WebRTC SDP sessions.

Instructions

Perform a WhatsApp Calling action (beta).

Proxies upstream POST /calling/calls. Despite the historical path name /initiateCall, this endpoint handles all call actions:

action

Use

Required

connect

Outbound business → user

to + session (sdp_type: offer)

pre_accept

Inbound (optional, reduces audio clipping)

call_id + session (sdp_type: answer)

accept

Inbound answer

call_id + session (sdp_type: answer)

reject

Decline inbound

call_id

terminate

Hang up

call_id

SDP / media (critical)

  • accept / pre_accept require a WebRTC-generated SDP answer.

  • Do not send Meta's offer SDP back as the answer.

  • Postman (or curl) alone cannot establish real media — you need a WebRTC or SIP stack. 1msg only proxies signaling.

Answer within ~30–60 seconds of an inbound connect webhook or Meta terminates as unanswered. Common Meta errors include Calling not enabled (138000), no permission (138006), SDP validation failures.

Outbound requires a prior Call Permission Request (CPR) acceptance. See the Calling tag overview for the full outbound flow and CPR limits.

Trial / subscriptionBlocked → 403 plain text. Upstream failures often return HTTP 200 with { "response": { "error": "<upstream message>" } }. Invalid API KEY is used only when Meta/360 body actually indicates an invalid API key or token. Other upstream 401s (notably call permission 138006) pass through error.message / error_user_msg.

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": {
      "messaging_product": "<messaging_product>",
      "action": "<action>"
    },
    "name": "initiate_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
actionYes
call_idNo
sessionNo
messaging_productYes
biz_opaque_callback_dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv1.2.10
    • addedInput schema / properties / action
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": "connect",
      +      "type": "string"
      +    },
      +    {
      +      "const": "pre_accept",
      +      "type": "string"
      +    },
      +    {
      +      "const": "accept",
      +      "type": "string"
      +    },
      +    {
      +      "const": "reject",
      +      "type": "string"
      +    },
      +    {
      +      "const": "terminate",
      +      "type": "string"
      +    }
      +  ]
      +}
    • addedInput schema / properties / biz_opaque_callback_data
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / call_id
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / messaging_product
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": "whatsapp",
      +      "type": "string"
      +    }
      +  ]
      +}
    • removedInput schema / properties / payload
      Removed value: -{
      -  "additionalProperties": {},
      -  "propertyNames": {
      -    "type": "string"
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / session
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "sdp": {
      +      "type": "string"
      +    },
      +    "sdp_type": {
      +      "anyOf": [
      +        {
      +          "const": "offer",
      +          "type": "string"
      +        },
      +        {
      +          "const": "answer",
      +          "type": "string"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "sdp_type",
      +    "sdp"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / to
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "messaging_product",
      +  "action"
      +]
  2. First observedv1.2.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses the 30–60 second answer window before Meta marks a call unanswered, that only signaling is proxied, the 403 trial/subscriptionBlocked behavior, and the trap of HTTP 200 responses carrying an upstream error object. The only reason this is not a 5 is that it does not describe what a successful call action returns or how call state can be observed afterwards (e.g., via get_calling_settings or webhooks).

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-loaded with a one-line purpose and a scannable action table before the longer SDP and error prose; the section headers make it easy to skim. A few passages, notably the detailed explanation of when the 'Invalid API KEY' message is used, are more verbose than an agent needs to select and invoke the tool.

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 six-parameter, nested-object, multi-action tool with no annotations and no output schema, the description supplies the action matrix, SDP requirements, timing constraints, permission prerequisites, and the non-obvious error envelopes. An agent has enough to attempt a correct call and interpret common failures, with only minor gaps around two incidental parameters.

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 0%, so the description must compensate, and it documents the most important parameters: `to` and `session` for connect, `call_id` for the inbound actions, and the required sdp_type per action, plus the critical warning not to echo Meta's offer SDP back as the answer. It leaves `messaging_product` and `biz_opaque_callback_data` entirely unexplained, and gives no format or length guidance for the sdp string, so it falls short of full coverage.

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 states a specific verb and resource ('Perform a WhatsApp Calling action', proxying POST /calling/calls) and immediately clarifies the misleading legacy path name /initiateCall. The action table makes clear this single tool covers the entire call lifecycle, which cleanly separates it from the many send_* siblings that create messages rather than calls.

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?

The table maps each action to its use case and required fields, so an agent can choose between connect/pre_accept/accept/reject/terminate without guessing. It also gives prerequisites (outbound requires a prior CPR acceptance, see Calling tag) and warns that a WebRTC/SIP stack is required for real media, which is exactly the when-to-use context this tool needs.

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