Skip to main content
Glama

Set or remove the webhook

set_webhook
DestructiveIdempotent

Set the webhook URL where volai sends event notifications. Allowed values in events: call.completed (call finished), call.failed (the platform rejected the call, the network failed, or the voice engine failed or was restarted during a connected call: its body then carries the transcript and reason engine_stall, engine_error or unfinished, and the call is not billed), call.no_answer (the called party didn't pick up an outbound call), call.missed (an inbound call went unanswered, including one the voice engine turned away because every line was busy: its call record has endReason capacity), message.sent (the carrier accepted an SMS for sending, not a delivery report) and message.received (an SMS arrived on your mobile number or calls and SMS number). The URL must start with https:// and point to a public address (localhost and internal networks are rejected). An empty events list means subscribe to all events, including ones added later. An empty url ("") REMOVES the webhook - volai then stops sending anything. Save the returned secret right away, you won't get it a second time. Optional headers are sent with every delivery, for a target that only accepts authenticated requests; values are secrets and come back masked. host, content-type, content-length, volai-signature and hop-by-hop headers cannot be set. Changing the URL to a different domain drops stored headers, so send the full values again; they are never sent to a different domain after a redirect. Same data as PUT /v1/webhook (response schema in /openapi.json).

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic HTTPS URL where volai sends event notifications (localhost and internal networks are rejected). An empty string ('') removes the webhook - volai then stops sending anything.
eventsNoEvents to subscribe to: call.completed, call.failed, call.no_answer, call.missed, message.sent, message.received. An empty list (the default) subscribes to all events, including ones added later, at most 20 entries.
headersNoCustom HTTP headers sent with every delivery, for example {"Authorization": "Bearer <key>"}, at most 5. Omit to keep the stored ones, {} removes them, a value equal to the mask from get_webhook keeps the stored one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Well beyond the annotations, the description discloses that the returned secret is shown only once, that headers are stored secrets returned masked, that changing to a different domain drops stored headers, that certain headers (host, content-type, volai-signature, hop-by-hop) are forbidden, and that headers are never forwarded across a redirect. These are exactly the operational facts an agent needs for a destructive mutation that the readOnly/destructive/idempotent hints cannot convey.

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 critical scoping facts (URL, removal via empty string) are front-loaded and most sentences carry unique information. However, the HTTPS/public-address rule and the empty-url-removes rule are duplicated verbatim in the schema, and the call.failed parenthetical is a long run-on that could be split for readability.

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 three-parameter mutation with a nested headers object, no output schema, and a destructive annotation, the description covers validation constraints, subscription semantics, removal semantics, secret handling, and points to /openapi.json for the response shape. Nothing essential to calling it correctly 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 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it explains what each event value actually means (including billing implications of call.failed and the capacity endReason for call.missed) and the domain-change/header-dropping interaction. That is substantive semantic content the schema does not carry.

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 description opens with a specific verb and resource: 'Set the webhook URL where volai sends event notifications', and it also states the removal path ('An empty url ("") REMOVES the webhook'). It does not name any sibling tool, so an agent must still infer the relationship with remove_webhook or get_webhook, which keeps this at 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: empty events = subscribe to all, empty url = remove, masked header value = keep stored. There is no explicit 'use remove_webhook instead of an empty url' or 'call get_webhook first to read the mask' guidance, so the agent has to derive the when-to-use decision from parameter semantics.

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.