Skip to main content
Glama

Rotate a webhook signing secret

rotate_webhook_secret
Destructive

Mint a fresh signing secret for an endpoint. The old secret stops signing immediately, and the new one is returned EXACTLY ONCE. Update the receiver now. Requires the MANAGER role or above.

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

Input Schema

NameRequiredDescriptionDefault
workspaceYesWorkspace slug or id
endpointIdYesWebhook endpoint id (uuid): list_webhook_endpoints returns these

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 already flag destructiveHint=true, but the description adds the critical semantics an agent cannot infer: the old secret is invalidated instantly and the new value is returned EXACTLY ONCE, meaning a missed response is unrecoverable. It also discloses the authorization requirement (MANAGER role), which annotations do not encode.

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?

Four short sentences, each carrying distinct information (action, consequence, one-time return, permission), with the action front-loaded. Slightly clipped phrasing ("Update the receiver now") borders on terse but nothing is wasted.

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?

With no output schema, the description carries the return-value burden and does so for the one fact that matters: the secret is visible exactly once. Permissions, side effects, and prerequisites are all covered for a two-parameter destructive tool.

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 description coverage is 100% and both parameters are documented in-schema, including a hint that list_webhook_endpoints returns endpoint ids. The description adds no additional meaning about workspace or endpointId, 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?

"Mint a fresh signing secret for an endpoint" names a specific verb and resource, which separates it cleanly from siblings like update_webhook_endpoint and create_webhook_endpoint. An agent can tell 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?

The description gives real operational context for when to call it (the old secret stops signing immediately, so update the receiver now) and states a permission prerequisite (MANAGER role or above). It stops short of explicitly contrasting with update_webhook_endpoint or stating when rotation is not appropriate, so it is clear context rather than full when/when-not guidance.

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