Skip to main content
Glama

stripe_webhook_handler

Create a Stripe webhook handler that verifies signatures and routes events to your chosen framework.

Instructions

Generate a Stripe webhook handler with signature verification and event routing

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventsYesStripe event types to handle
api_keyNoAPI key for authentication
frameworkNonextjs
endpoint_pathNo/api/webhooks/stripe
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose that the tool generates code and that the generated handler includes signature verification and event routing, but it says nothing about whether files are created or overwritten, what scaffolding is produced, or what secrets are required (e.g., webhook secret vs. api_key).

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 description is a single 11-word sentence with zero filler, front-loading the verb and resource before the key features. It is efficient, though its terseness contributes to the under-specification penalized in other dimensions.

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

Completeness2/5

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

For a code-generation tool with 4 parameters, no annotations, and no output schema, one sentence is insufficient. Missing information includes what artifacts are produced, how the framework default is applied, whether existing files are overwritten, and how this tool relates to sibling webhook and Stripe tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50% — framework and endpoint_path have no textual descriptions, only an enum and a default. The description adds no parameter-level meaning: it does not clarify how api_key relates to the advertised signature verification, what values the events array should contain, or what the framework choices imply for the generated output.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Generate'), a precise resource ('Stripe webhook handler'), and names two defining features: 'signature verification and event routing.' This distinguishes it from generic webhook siblings like webhook_generate_receiver and from other Stripe tools (stripe_checkout_session, stripe_subscription_manager), though it does not explicitly name those alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given on when to choose this tool over closely related siblings such as webhook_generate_receiver, webhook_add_signatures, or stripe_checkout_session. With a very large sibling list containing several near-competitors, the absence of any when-to-use or alternative routing means usage must be inferred entirely from the tool name.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/barnburner121/claude-plugin-marketplace'

If you have feedback or need assistance with the MCP directory API, please join our Discord server