Skip to main content
Glama

set_webhook

Set or update the webhook URL for an endpoint. Returns a signing secret that must be saved. PATs are preferred and require mcp:endpoints:write or mcp:*.

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

Input Schema

NameRequiredDescriptionDefault
slugYesThe unique slug identifier for the endpoint
apiKeyNoLegacy endpoint API key (x402_*)
webhookUrlYesHTTPS URL to receive webhook events
accessTokenNoYour dashboard MCP personal access token (sgl_pat_*). Can be omitted when the connection sends Authorization: Bearer sgl_pat_*

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / accessToken / description
      Previous value: -"Your dashboard MCP personal access token (sgl_pat_*)"New value: +"Your dashboard MCP personal access token (sgl_pat_*). Can be omitted when the connection sends Authorization: Bearer sgl_pat_*"
  2. Changed3 schema fields changed
    • addedInput schema / properties / accessToken
      Added value: +{
      +  "description": "Your dashboard MCP personal access token (sgl_pat_*)",
      +  "type": "string"
      +}
    • changedInput schema / properties / apiKey / description
      Previous value: -"Your endpoint API key (x402_*)"New value: +"Legacy endpoint API key (x402_*)"
    • changedInput schema / required
      Previous value: -[
      -  "slug",
      -  "webhookUrl",
      -  "apiKey"
      -]New value: +[
      +  "slug",
      +  "webhookUrl"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / apiKey / description
      Previous value: -"Your endpoint API key (sk_live_* or sk_test_*)"New value: +"Your endpoint API key (x402_*)"
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does unusually well: it discloses that a signing secret is returned and must be saved, and it states the auth preference (PAT) plus the required scope mcp:endpoints:write or mcp:*. It does not say what happens to a previously issued secret when the URL is overwritten, which is the main remaining gap.

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?

Three short sentences, front-loaded with the action, followed by the critical 'save the secret' warning and auth note. No filler, though the auth sentence is dense enough to be slightly cryptic.

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?

No output schema exists, and the description compensates by telling the agent a signing secret comes back and must be persisted. For a four-parameter mutation with full schema coverage, the only missing piece is overwrite/rotation semantics for existing secrets.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so slug, webhookUrl, apiKey and accessToken are all documented in the schema itself; the description adds no format or constraint detail beyond that. Baseline 3 applies.

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 names a specific verb pair and resource: 'Set or update the webhook URL for an endpoint.' An agent immediately knows this is a webhook-configuration write, distinct from remove_webhook. It stops short of explicitly contrasting itself with the removal sibling.

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 by 'Set or update' and the auth guidance tells the agent how to authenticate, but there is no statement of when to prefer this over alternatives (e.g. remove_webhook) or any precondition such as needing an existing endpoint.

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.

Resources