Skip to main content
Glama

Change a webhook's secret

rotate_webhook_secret
Destructive

Makes a new signing secret for an endpoint and returns it once. The old secret keeps signing beside the new one until previousSecretSignsUntil (a day), so the receiver can switch with nothing missed. Use it when a secret may have leaked. Only owners and admins can change one.

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

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy, in a sentence: kept in the workspace's activity.
endpoint_idYesThe endpoint (list_webhooks gives ids).
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

The annotations declare destructiveHint=true and readOnlyHint=false, but the description adds behavior the annotations cannot express: the new secret is returned only once, and the old secret keeps signing alongside it until previousSecretSignsUntil (about a day). That overlap window is the key operational detail for a zero-downtime switch, and the permission constraint adds authorization context.

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 front-loaded with its most important fact: what it creates, how the rollover behaves, when to use it, and who can. No wording is redundant.

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 compensates by stating that the secret is returned once, and it explains the grace-period behavior and permission requirements. An agent has enough information to call this correctly and to warn a user about the one-time reveal.

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%, so all three parameters are already documented with descriptions, including the endpoint_id and reason semantics. The description adds no syntax or format detail beyond that, so the baseline 3 applies; previousSecretSignsUntil is a return-value concept, not an input parameter.

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 names a specific verb and resource: it 'makes a new signing secret for an endpoint and returns it once,' which is clearly distinguishable from generic secret or webhook management. It never names a sibling such as rotate_sign_in_client_secret, so the differentiation is left implicit, but the webhook-endpoint scoping does most of that work.

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 it when a secret may have leaked' gives a concrete trigger condition, and 'Only owners and admins can change one' states the permission prerequisite up front so a caller can check access before trying. There is no explicit statement of when not to rotate (e.g., routine scheduling) or a named alternative, which keeps it short of 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