Skip to main content
Glama

retry_failed_webhook

Mark failed Stripe webhook events for manual reprocessing in the audit log. Select targets by event IDs or a time range, with dry run mode for preview.

Instructions

Mark failed Stripe webhook events (the billing_dead_letter table) for reprocessing in the audit log (POST /v1/tier2/webhook-events/retry). Finishes "retry all the Stripe webhooks that failed transiently last week" in one prompt. Select targets by eventIds (specific events, up to 100) or fromTimestamp/toTimestamp (range, 7-day cap). dryRun=true previews the list; dryRun=false records a 'marked_for_manual_redispatch' entry per event in the audit log (the founder performs the actual retry via wrangler / the Stripe dashboard; fully automatic re-dispatch is a later phase). Emits use a deterministic idempotencyId (sha1(endpoint+accountId+eventId)); duplicate runs with the same args are silently skipped. Founder-operations only (an internal billing-webhook recovery tool; general accounts get 403). billing_dead_letter is an internal cross-account table and actual re-dispatch stays manual, so there is no plan to open this up. Returns (dryRun=true) { dryRun: true, targetCount, events: [{eventId, eventType, reason, receivedAt}] }; (dryRun=false) { dryRun: false, targetCount, succeeded: string[], failed: [{eventId, reason}], skipped: string[], narrative, retriedAt }. Audit: emits tier2.retry_failed_webhook per event.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dryRunNotrue = preview only; false = actually emit the markers. Default false
eventIdsNoArray of Stripe event ids to retry (evt_xxx format, up to 100). Can be combined with fromTimestamp
approvalIdNoApproval id granted via request_approval (apr_ + 32 hex; create with action 'retry_failed_webhook'). Server-side verification + atomic consumption on actual execution (1 approval = 1 execution). dryRun only verifies
maxRetriesNoPer-request cap (1-100, default 10)
toTimestampNoRange end (ISO-8601, optional)
fromTimestampNoRange start (ISO-8601; more than 7 days ago is rejected with 400)
Behavior5/5

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

With no annotations, the description fully discloses multiple behavioral traits: it only marks events for retry (actual re-dispatch is manual), uses deterministic idempotency for duplicate detection, requires approval for actual execution, returns specific shapes, emits audit events, and has access restrictions. This is comprehensive.

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 well-structured with the purpose in the first sentence, followed by selection criteria, behavior, and return shapes. It is somewhat verbose but every sentence adds necessary information. Could be more concise, but it is not overly long for the complexity.

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?

Given the tool has no output schema and six parameters, the description provides complete context: input semantics, behavioral nuances (dry run, duplicates, access control), explicit return shapes for both dryRun true/false, audit details, and idempotency. No gaps remain.

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?

The input schema has 100% parameter description coverage, but the description adds value by explaining how parameters interact (e.g., combining eventIds with fromTimestamp, 7-day cap on range, dryRun behavior, approvalId usage, maxRetries cap). It goes beyond the schema's individual descriptions.

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 explicitly states the tool marks failed Stripe webhook events for reprocessing, with specific verb 'retry' and resource 'failed Stripe webhook events'. It distinguishes itself from sibling tools like test_webhook by noting it is an internal founder-operations-only recovery tool, and focuses on a narrow use case.

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 clearly states when to use the tool: to retry failed Stripe webhooks, even providing a common prompt phrase. It mentions access restrictions (403 for general accounts) and internal nature, but does not explicitly list alternative tools or scenarios where it should not be used.

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/argosvix/mcp-server'

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