Skip to main content

MCP Resources Reference

Resources provide read-only access to your webhook data. Each resource has a unique URI and returns structured data in a consistent format.

Resource URIs

All resources follow the pattern: webhook://[type]/[identifier]

webhook://events/recent

Returns the most recent webhook events across all your webhooks.

Response Schema

Event Status Values

Provider Values

webhook://requests/recent

Returns the most recent webhook HTTP requests made by your webhooks.

Response Schema

Request Status Values

Common Status Codes

webhook://webhooks/list

Returns all configured webhooks in your organization.

Response Schema

Webhook Fields

string
Unique identifier for the webhook
string
Human-readable name
string
Optional description of the webhook’s purpose
string
The webhook provider (stripe, github, clerk, custom)
string
The Unhook URL to configure with the provider
string
Your endpoint that receives the webhooks
boolean
Whether the webhook is currently active
object
Webhook-specific configuration settings
object
Basic statistics about webhook performance

Data Limits

Resources are designed to provide quick access to recent data:
  • Events: Limited to 100 most recent events
  • Requests: Limited to 100 most recent requests
  • Webhooks: No limit (typically < 50 per organization)
For historical data or larger datasets, use the search tools instead.

Common Patterns

Checking Recent Failures

To quickly identify recent issues:
  1. Read webhook://events/recent
  2. Filter events with status: "failed"
  3. Use event IDs to search for related requests

Monitoring Webhook Health

To assess webhook performance:
  1. Read webhook://webhooks/list
  2. Check the stats field for each webhook
  3. Identify webhooks with high failure rates

Debugging Specific Events

To investigate a particular event:
  1. Read webhook://events/recent
  2. Find the event by ID or characteristics
  3. Note the webhookId and eventId
  4. Use tools to analyze the event details

Error Responses

If a resource cannot be accessed, the response will include an error:

Common Error Codes

Best Practices

  1. Cache resource data - Resources update in real-time, but caching for 30-60 seconds is acceptable
  2. Use metadata - Check hasMore to know if older data exists
  3. Combine with tools - Resources show recent data; use tools for historical analysis
  4. Monitor regularly - Set up periodic checks of webhook health
  5. Handle errors gracefully - Always check for error responses

Next Steps