Skip to main content
Glama
@racehooks/mcp

@racehooks/mcp

Official

Rotate Webhook Secret

rotate_webhook_secret
Destructive

Invalidate the current HMAC signing secret for a webhook and generate a new one. Update your server before calling; the old secret stops working immediately and the new secret is shown once.

Instructions

Rotate the HMAC signing secret for a webhook. The old secret is invalidated immediately — update your server before calling this. The new secret is shown once.

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

Input Schema

NameRequiredDescriptionDefault
webhookIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds the critical operational facts those hints don't convey: the old secret dies immediately and the new secret is displayed only once. It does not mention permission requirements or whether a grace period exists, keeping it just under full marks.

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 sentences, each doing distinct work: what it does, the irreversible consequence plus prerequisite, and the one-time reveal. The most consequential fact (immediate invalidation) is front-loaded right after the purpose.

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?

With no output schema, the description correctly discloses the one-time secret reveal and immediate invalidation, which is what an agent needs to avoid breaking a consumer. The missing piece is any guidance on obtaining the webhookId, though parameter handling is otherwise trivial.

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 description coverage is 0%, so the description carries the burden for the single webhookId parameter, yet it never mentions the parameter, its expected format, or where the ID comes from (e.g., list_webhooks). It only implies 'a webhook' generically.

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 (rotate) and resource (HMAC signing secret for a webhook), which cleanly separates it from siblings like get_webhook_secret, update_webhook, and delete_webhook. An agent knows exactly what operation this performs without opening the 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?

Gives a clear precondition: 'update your server before calling this,' which tells the agent the ordering constraint relative to consumer-side code. It does not explicitly name get_webhook_secret as the read-only alternative for inspection scenarios, so it falls short of full when/when-not routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.