Skip to main content
Glama

rotate_webhook_secret

Rotate a webhook's signing secret. Owner/admin only. Returns the new secret plaintext EXACTLY ONCE (only secret_last4 is readable afterwards); the old secret stops signing new deliveries. 404 if the webhook belongs to another org. Mirrors POST /v1/webhooks/{id}:rotate-secret.

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

Input Schema

NameRequiredDescriptionDefault
org_idYes
webhook_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior5/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 so well: one-time plaintext return, only secret_last4 readable afterwards, old secret stops signing new deliveries, permission requirement, and cross-org 404. These are exactly the irreversible side effects an agent must know before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tight sentences, each carrying distinct information, with the critical one-time-secret warning front-loaded. Nothing is redundant or padded.

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?

The output schema covers return values and the description covers permissions, irreversibility, and error behavior, so an agent can call this safely. The only gap is parameter-level meaning for org_id and webhook_id.

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

Parameters2/5

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

Schema coverage is 0%, so the description must define the two parameters, and it largely does not. org_id and webhook_id are never described beyond an oblique hint that the webhook must belong to the caller's org.

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?

States a specific verb and resource ("Rotate a webhook's signing secret") that is clearly distinct from create/delete/get/update_webhook. It does not explicitly say how it differs from update_webhook, which is the only plausible confusion point, so it falls just short of a 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?

Provides real eligibility gates (owner/admin only) and a failure condition (404 when the webhook belongs to another org), which tells the agent when the call is valid. However, it never states when to choose this over update_webhook or who should rotate secrets, so usage is implied rather than directed.

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