Skip to main content
Glama

Rotate Webhook Secret

rotate_webhook_secret
Destructive

Replace a webhook signing secret; the old one stops working at once. Returns the new secret. Needs a key.

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

Input Schema

NameRequiredDescriptionDefault
idYesWebhook id from list_webhooks, e.g. wh_01JB2X3Y4Z

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already flag destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description adds real behavioral detail beyond them: the old secret is invalidated immediately and the call returns the new secret, plus a note that authentication is required.

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?

Three short clauses, with no filler. The irreversible effect comes first, then the return value, then the auth requirement, so an agent sees the risk immediately.

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 one-parameter destructive mutation, this covers the essentials: effect, return value, and auth. It doesn't say whether the new secret is shown only once or how to roll back, but the annotations and simple schema leave little else an agent needs in order to call it.

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?

There is only one parameter and the schema fully documents it, including the 'wh_01JB2X3Y4Z' format and where to get it (list_webhooks). The description adds nothing about the id, but with a single fully covered parameter, that's fine.

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 gives a specific verb and resource: 'Replace a webhook signing secret'. That clearly distinguishes it from a generic update_webhook, but it doesn't name the sibling or clarify whether updating a webhook could also touch the secret.

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?

The immediate effect ('the old one stops working at once') implies the tool is for rotations that deliberately break existing integrations, but the description never says when to choose this over update_webhook or delete_webhook, and it states no prerequisites beyond 'needs a key'.

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