Skip to main content
Glama

rotate_webhook_secret

Destructive

Generate a NEW signing secret for a webhook. The response returns the new secret ONLY ONCE, capture and store it. The previous secret stops working immediately, so update your receiver's X-Signature verification to the new secret right away or deliveries will fail verification. Use this if the old secret was lost or leaked. SCOPE: requires a WRITE-scoped API key (a read-only key returns 403).

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": {
      "webhook_id": "<webhook_id>"
    },
    "name": "rotate_webhook_secret"
  }
}

Input Schema

NameRequiredDescriptionDefault
webhook_idYesId of the webhook (from list_webhooks).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=false, but the description adds context annotations cannot carry: the secret is returned only once and must be captured, the previous secret is invalidated immediately, and receivers must be updated or deliveries fail verification. It also discloses the auth requirement (WRITE scope, 403 with read-only keys).

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 the action and the most critical fact (one-time return), then consequences, then scope. Slightly redundant in places — "stops working immediately" and "deliveries will fail verification" convey overlapping urgency — which keeps it from a 5.

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 single-parameter, no-output-schema mutation, the description covers everything needed: what is generated, that the value is shown once, that old credentials break instantly, the follow-up action required by the caller, and the permission scope. Nothing essential is missing.

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% and there is only one parameter, whose schema description already explains it comes from list_webhooks. The description adds no additional meaning about the webhook_id argument, so the baseline 3 applies.

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 ("Generate a NEW signing secret for a webhook") and makes the operation's distinctness from a general webhook update explicit via the emphasis on NEW and the rotation semantics. An agent can distinguish this from update_webhook without opening either schema.

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?

"Use this if the old secret was lost or leaked" gives a clear triggering condition, and the SCOPE line tells the caller a WRITE-scoped key is required with a 403 failure mode otherwise. No explicit when-not guidance (e.g., versus changing a webhook's URL or other settings), which keeps it off a 5.

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