Skip to main content
Glama

ScorpTech x402 Tools

Webhook Verify

webhook_verify
Read-onlyIdempotent

Verify (or create) webhook signatures for Stripe, GitHub, Slack, Shopify, Twilio, Standard Webhooks / Svix, Paddle, Square, Zoom, Mailgun, Intercom, Linear, Typeform and HubSpot v3, or any generic HMAC scheme — the step agents get wrong when wiring up webhook receivers. Pass the raw body, the received headers (or just the signature) and the signing secret: returns valid, the timestamp age against a replay tolerance, and on failure a diagnosis (body re-serialised or trimmed, wrong secret format, hex vs base64, stale timestamp). mode=sign produces the exact headers a provider would send, for testing receivers. Constant-time comparison; the secret is never echoed. Returns JSON with: valid, signatureValid, provider, scheme, timestamp, ageSeconds, withinTolerance, signaturesChecked. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/webhook-verify

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": {
      "provider": "<provider>",
      "payload": "<payload>",
      "secret": "<secret>"
    },
    "name": "webhook_verify"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoStandard Webhooks / Svix message id when not in headers
nowNoUnix time for "now" (testing)
urlNoFull webhook URL (Twilio, Square, HubSpot)
modeNoverify
headerNogeneric: header holding the signature
methodNoHTTP method (HubSpot v3)POST
prefixNogeneric: prefix before the signature, e.g. "sha256="
secretYesSigning secret (Stripe whsec_..., Svix whsec_<base64>, ...)
headersNoReceived headers (any case), e.g. {"Stripe-Signature": "t=...,v1=..."}
payloadYesThe raw request body exactly as received (not re-serialised JSON)
encodingNogeneric: signature encodinghex
providerYes
algorithmNogeneric: HMAC hashsha256
signatureNoThe signature header value (alternative to headers)
timestampNoTimestamp header value when not in headers (Slack, Zoom, Standard Webhooks, HubSpot)
toleranceNoMax timestamp age in seconds (0 = skip)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, and the description adds real value on top: constant-time comparison, the secret never being echoed, the failure-diagnosis taxonomy (re-serialised body, wrong secret format, hex vs base64, stale timestamp), and per-call x402 pricing. Pricing and the alternate HTTPS endpoint are behavior an agent cannot get from annotations; the only gap is no pagination/error-code detail.

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?

It is front-loaded: the verb and provider list lead, then inputs, then outputs, then failure modes, then pricing and endpoint. Dense and mostly earns its length, though the parenthetical pitch ('the step agents get wrong') is slightly promotional filler.

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?

For a 16-parameter tool with nested objects and no output schema, the description explicitly enumerates the returned fields (valid, signatureValid, provider, scheme, timestamp, ageSeconds, withinTolerance, signaturesChecked) and the diagnostic behavior on failure. An agent has everything needed to call it and interpret the result.

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 88%, so the baseline is 3; the description still adds cross-parameter meaning the schema cannot, namely that payload must be the raw body, that headers may substitute for an individual signature value, and that tolerance is judged against a replay window. It stops short of covering the provider-specific fields (url, method, id) that only the schema documents.

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?

It names a specific verb-resource pair ('Verify (or create) webhook signatures') and enumerates the exact provider schemes covered (Stripe, GitHub, Slack, Shopify, Twilio, Svix, Paddle, Square, Zoom, Mailgun, Intercom, Linear, Typeform, HubSpot v3) plus 'generic HMAC'. The scope boundary against asymmetric-signature verification is implicit in 'HMAC scheme', letting an agent distinguish it from evm_verify_signature without opening a 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?

It gives clear context of use ('wiring up webhook receivers') and calls out the mode=sign variant for testing receivers, which tells the agent when to flip modes. It does not give an explicit when-not or a named alternative, so it falls short of a routing rule.

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