Skip to main content
Glama

Webhook Toolkit

Explain a webhook / write its handler (AI)

explain_webhook_request

AI analysis of a captured request. mode=explain: who sent it, which event, key fields, how to verify the signature, pitfalls. mode=handler: complete receiving code that verifies the signature and handles this event. Included in paid plans; anonymous and free users get 3 trials.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo
tokenYes
languageNoHandler language (mode=handler). Default node.
request_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the behavioral burden. It discloses the trial limit and the two modes, but it does not explicitly state that this tool is read-only (it only analyzes/generates code) or describe error behavior, rate limits, or authentication requirements. It adds some context but leaves key behavioral aspects unstated.

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 two sentences, with the core purpose stated first and mode specifics following. It is compact, front-loaded, and contains no filler. Every sentence adds value, covering the two modes and the access constraint.

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?

The description covers the main functionality, the two modes, and the access limitation. It does not describe the output format (e.g., whether explain returns structured text or handler returns a code snippet), but given there is no output schema and the tool is straightforward, this is a minor gap. It also does not mention error conditions or prerequisites beyond having a request_id.

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 only 25% (only 'language' has a description). The description explains 'mode' by detailing what explain and handler modes do, and it clarifies that 'language' applies to handler mode with a default. However, 'token' and 'request_id' are left undocumented in both schema and description; the description does not compensate for these, though they are likely self-explanatory as identifiers.

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 clearly states it provides AI analysis of a captured request and can write a handler, with two explicit modes (explain and handler) that each specify what they deliver. It distinguishes itself from sibling tools like verify_webhook_signature and get_webhook_request by focusing on explanation and code generation rather than verification or retrieval.

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 description implies when to use this tool: when you need to understand a webhook request or generate handling code. It does not explicitly contrast with alternatives, but the mode-based breakdown makes the intended use clear. It also mentions a trial limit, which sets expectations about access, though it does not mention exclusions like 'do not use for verification'.

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.