Skip to main content
Glama

replay_webhook_delivery

Idempotent

Explicitly retry a failed delivery after correcting the receiver. Preserves event_id for deduplication and rechecks the current endpoint revision. Does not replay successful deliveries or approve facility handling. Requires webhook.manage. Uses the same bounded control plane and tenant/agent/Live-Sandbox authorization as /api/v1/webhooks/endpoints. A repeated idempotency_key with the same input replays the stored result.

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": {
      "expected_revision": "<expected_revision>",
      "idempotency_key": "<idempotency_key>",
      "endpoint_id": "<endpoint_id>",
      "delivery_id": "<delivery_id>"
    },
    "name": "replay_webhook_delivery"
  }
}

Input Schema

NameRequiredDescriptionDefault
delivery_idYesA failed delivery's id; successful deliveries are not replayed.
endpoint_idYesWebhook endpoint id (UUID).
idempotency_keyYesA UUID for this one intent; the same key replays the identical request.
expected_revisionYesThe endpoint's current revision; a stale revision is refused so concurrent edits are never overwritten.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / delivery_id / description
      Previous value: -"A failed delivery's id from list_webhook_deliveries; successful deliveries are not replayed."New value: +"A failed delivery's id; successful deliveries are not replayed."
    • changedInput schema / properties / endpoint_id / description
      Previous value: -"Webhook endpoint id (UUID) from list_webhook_endpoints."New value: +"Webhook endpoint id (UUID)."
    • changedInput schema / properties / expected_revision / description
      Previous value: -"The endpoint's current revision from list_webhook_endpoints; a stale revision is refused so concurrent edits are never overwritten."New value: +"The endpoint's current revision; a stale revision is refused so concurrent edits are never overwritten."
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"A new UUID for this one intent; reuse it only to retry the identical request."New value: +"A UUID for this one intent; the same key replays the identical request."
  2. Changed4 schema fields changed
    • addedInput schema / properties / delivery_id / description
      Added value: +"A failed delivery's id from list_webhook_deliveries; successful deliveries are not replayed."
    • addedInput schema / properties / endpoint_id / description
      Added value: +"Webhook endpoint id (UUID) from list_webhook_endpoints."
    • addedInput schema / properties / expected_revision / description
      Added value: +"The endpoint's current revision from list_webhook_endpoints; a stale revision is refused so concurrent edits are never overwritten."
    • addedInput schema / properties / idempotency_key / description
      Added value: +"A new UUID for this one intent; reuse it only to retry the identical request."
  3. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, idempotent=true, destructive=false), the description discloses real behavioral traits: event_id is preserved for receiver-side deduplication, the current endpoint revision is rechecked before replay, and a repeated idempotency_key with identical input returns the stored result rather than re-sending. It also states the authorization/tenancy model and shared control plane, which an agent needs before calling a mutation.

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?

Purpose is front-loaded in the first sentence, and the remaining sentences each contribute a distinct constraint (dedup, revision check, exclusions, permission, idempotent replay). The control-plane/tenancy sentence is dense infrastructure jargon that could be tightened, which costs it the top score.

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 non-destructive mutating tool with four required UUID/revision parameters and an output schema, the description covers what the agent must know before calling: preconditions, permission, idempotency, and concurrency. Failure modes after invocation (stale revision rejection response, receiver error handling) are left to the output schema, which is acceptable given one exists.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: expected_revision is a concurrency guard against overwriting edits, and idempotency_key governs result replay. It does not elaborate on delivery_id/endpoint_id beyond what the schema already documents, so it is an increment rather than a full semantic treatment.

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 opens with a specific verb and resource plus a precondition: retry a failed delivery after correcting the receiver. It bounds scope by excluding successful deliveries and explicitly disclaims facility-handling approval. It stops short of naming the adjacent tools an agent might pick instead (e.g. test_webhook_endpoint, which also triggers deliveries), so the differentiation is implied rather than stated.

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?

It gives a clear usage condition ('after correcting the receiver') and an explicit exclusion ('does not replay successful deliveries'), plus a permission prerequisite ('Requires webhook.manage'). It does not name an alternative tool or say when a test/verification path should be chosen over a replay, which keeps it below the top band.

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.