Skip to main content
Glama

Webhook Toolkit

Verify a webhook signature

verify_webhook_signature
Read-only

Check whether a webhook signature is valid for a raw body and a secret, and diagnose why it fails (wrong secret, whitespace, re-serialized JSON body, expired timestamp, wrong URL for Twilio). Providers: stripe, github, shopify, slack, twilio.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoTwilio only: the full URL Twilio called
secretYes
providerYes
raw_bodyYesThe raw request body exactly as received
signatureYesThe signature header value (Stripe-Signature, X-Hub-Signature-256, X-Shopify-Hmac-Sha256, X-Slack-Signature, X-Twilio-Signature)
timestampNoSlack only: X-Slack-Request-Timestamp

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With readOnlyHint already conveying safety, the description adds real behavioral value by enumerating failure modes such as wrong secret, whitespace, re-serialized JSON body, expired timestamp, and wrong URL for Twilio. It stops short of describing the exact return/result format, but the diagnostic scope is well disclosed.

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?

The description is one efficient sentence with a front-loaded action and diagnostic scope, followed by a compact provider list. Every phrase adds useful information and there is no repetition of schema content.

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 multi-provider tool with no output schema, the description covers provider scope and common failure causes well. It does not explicitly state per-provider required inputs like timestamp for Slack or URL for Twilio, and the exact return shape is left implied, but the schema fills in some of those details.

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?

At 67% schema coverage, the schema documents most parameter meanings. The description goes further by linking failure causes to parameters (secret, raw_body, timestamp, url), which helps the agent understand how the inputs interact during verification rather than just their types.

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 uses a specific verb and resource ('Check whether a webhook signature is valid for a raw body and a secret') and clearly scopes providers. It also distinguishes the tool from siblings like sign_webhook_payload by emphasizing validation and failure diagnosis rather than generation.

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?

The description makes the tool's context clear (validating webhook signatures across several providers) but never explicitly names alternatives or states when not to use it. An agent can infer usage, but the guidance is implied rather than explicit.

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.