Skip to main content
Glama

Debug signature

debug_signature
Read-onlyIdempotent

Identify why a webhook signature verified or failed by checking provider scheme, secret, timestamp, and body changes, then test a candidate secret without saving it.

Instructions

Explains why a webhook's signature verified or failed: detected provider scheme (Stripe, GitHub, Shopify, Slack, Standard Webhooks, Twilio), wrong secret, stale timestamp, or a body that was modified (reformatted JSON, re-escaped slashes). Checks against the secret saved on the endpoint, or against secret to try a candidate without saving it.

Input Schema

NameRequiredDescriptionDefault
secretNoOptional candidate signing secret to test instead of the saved one (not stored)
event_idYesWhich event: its number (12 or "#12", from list_events or the dashboard), "latest", "latest <event type>" such as "latest invoice.paid", or the provider's own event id such as evt_1Qx...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint false. The description adds substantive behavior beyond that: which provider schemes it detects, the likely causes it diagnoses, and that a candidate secret can be tested without saving it.

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?

Two dense sentences with no wasted wording. The core debugging purpose comes first, followed by the saved-versus-candidate secret distinction.

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 read-only debugging tool with full parameter documentation and no output schema, the definition gives enough context to invoke it confidently. It could say more about the returned diagnostic format, but the listed failure causes cover the essential expectation.

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 input schema already documents both parameters thoroughly. The description reinforces that `secret` is a candidate tested without saving, but adds little syntax or format meaning beyond the schema.

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?

States a specific verb and resource: explains why a webhook signature verified or failed. It names provider schemes and concrete failure causes, which makes the tool clearly distinct from siblings like replay_event or compare_events.

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?

The troubleshooting context is clear: use this when a signature verified or failed and you need to know why. It does not explicitly name alternatives or exclusions, but the debugging purpose is strongly implied by the failure-cause list.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.