Skip to main content
Glama
1msg MCP

1msg MCP

Official
by 1msg

set_webhook

Configure or replace the client webhook URL(s) that receive inbound 1msg events; pass up to five URLs to deliver the same events to multiple endpoints.

Instructions

Set the client webhook URL that receives inbound events for this channel.

Replaces the stored webhook list (it does not append). To deliver the same events to several endpoints, pass an array in webhookUrl (max 5) or use POST /settings. With several URLs already configured, posting only the disabled URL drops the others — send the complete array to re-enable one of many.

Incoming payloads include messages, delivery ACKs, group updates, coexistence echoes, and calling events. WhatsApp Calling payloads (type: "calls") are documented under the Calling tag. Call permission replies arrive on the normal messages path (call_permission_reply).

Repeating POST /webhook with the same URL(s) clears an auto-disable (self-serve re-enable). Send/receive are not affected by webhook auto-disable.

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": {
      "webhookUrl": "<webhookUrl>"
    },
    "name": "set_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
webhookUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.2.10
    • addedInput schema / properties / webhookUrl / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
    • removedInput schema / properties / webhookUrl / type
      Removed value: -"string"
    • addedInput schema / required
      Added value: +[
      +  "webhookUrl"
      +]
  2. First observedv1.2.0

TDQS

A4.2/5.0
Behavior5/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 that the operation is destructive to the existing webhook list, that posting a single disabled URL drops the others, the max of 5 URLs, auto-disable/re-enable semantics, and that send/receive traffic is unaffected by auto-disable. That is exactly the kind of state-mutation detail an agent needs before calling a write 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 most consequential fact (replaces, does not append) is front-loaded and bolded, and the paragraphs are short. The payload-type inventory (messages, ACKs, group updates, coexistence echoes, calling events) is useful context but leans toward reference material rather than invocation guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter write tool with no annotations and no output schema, the description covers mutation semantics, limits, and re-enable behavior thoroughly. Auth requirements and the shape of the success response are the only notable omissions, and the latter is low-value here.

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% and the schema only offers an untyped anyOf of string-or-array with no bounds. The description compensates by explaining that an array is accepted, that it caps at 5 entries, and that each entry is a delivery endpoint. It could still say more about URL format or validation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb and resource: 'Set the client webhook URL that receives inbound events for this channel.' It is clearly distinguishable from get_webhook (read) among the siblings, though it never names that sibling explicitly to close the loop.

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?

The description gives clear operational guidance: it replaces rather than appends, arrays are for multi-endpoint delivery (max 5), and re-posting clears an auto-disable. The one gap is that the suggested alternative is an HTTP path ('use POST /settings') rather than a sibling tool name, leaving the agent to map that onto the available toolset.

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