Skip to main content
Glama

API Keg — HookSink Ephemeral Webhook Receiver

Verify Webhook HMAC Signature

verify_webhook_signature
Read-onlyIdempotent

Statelessly verifies webhook HMAC-SHA256 signatures and replay timestamps across Stripe, GitHub, Shopify, Slack, Linear, or custom headers using constant-time Web Crypto comparison. Pricing: $0.001 USD per stateless signature verification (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.

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": {
      "rawBody": "<rawBody>",
      "headers": "<headers>",
      "secret": "<secret>"
    },
    "name": "verify_webhook_signature"
  }
}

Input Schema

NameRequiredDescriptionDefault
secretYesWebhook HMAC signing secret (e.g., whsec_... for Stripe).
headersYesHTTP request headers map containing the webhook signature header(s).
rawBodyYesExact raw UTF-8 HTTP request body string as delivered by the webhook sender.
providerNoWebhook signature provider preset (auto, stripe, github, shopify, slack, linear, generic_sha256).auto
nowSecondsNoOptional Unix epoch timestamp (seconds) override for deterministic replay checks.
signatureHeaderNoOptional custom signature header name when provider is generic_sha256 or linear.
toleranceSecondsNoTimestamp replay-window tolerance in seconds for Stripe and Slack (default 300).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already establish read-only, idempotent, non-destructive, and closed-world behavior. The description adds meaningful context beyond that: constant-time Web Crypto comparison, statelessness, per-call pricing, and free dry-run validation. It still does not explain failure/result semantics for invalid signatures or replay-window violations.

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?

The core capability and provider scope are front-loaded, and the description stays compact. The pricing and dry-run sentence is useful but slightly promotional in tone, keeping it just short of maximally concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a seven-parameter security-sensitive tool with no output schema, the definition covers purpose, providers, security behavior, and cost well. It does not describe the return value or error behavior for signature mismatches, timestamp failures, or provider-specific parsing, which leaves an important gap for interpreting results.

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%, so the schema already documents all seven parameters, including provider presets, raw body, headers, secret, and tolerance. The description reinforces provider and custom-header usage but does not add syntax or behavioral meaning beyond what the schema provides, so the baseline of 3 is appropriate.

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?

The description states a specific verb and resource: statelessly verifies webhook HMAC-SHA256 signatures and replay timestamps. It also names the supported providers (Stripe, GitHub, Shopify, Slack, Linear, custom headers), making the tool's scope unambiguous and clearly distinct from inbox/event siblings.

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?

Usage is implied by the verification purpose and provider presets, and the dry-run note gives a validation path. However, it does not explicitly say when to choose this tool versus the sibling event/replay tools, nor does it state when not to use it.

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