Skip to main content
Glama
CryptoAPIs-io

@cryptoapis-io/mcp-blockchain-events

Official

blockchain_events_create

Create webhook subscriptions for on-chain events to receive POST callbacks when transactions confirm, token transfers occur, or new blocks are mined.

Instructions

Create a webhook subscription for on-chain events. When the specified event occurs, CryptoAPIs sends a POST request to your callbackUrl with the event data. Subscriptions persist until deleted.

Event types (supported blockchains vary per type — an invalid blockchain for the chosen eventType is rejected before calling the API): • address-coins-transactions-unconfirmed: fires when an unconfirmed coin transaction touches the address • address-coins-transactions-confirmed: fires once a coin transaction confirms (optionally on an exact confirmation via receiveCallbackOn) • address-coins-transactions-confirmed-each-confirmation: fires on every confirmation up to confirmationsCount (required) • address-tokens-transactions-confirmed: fires once a token transfer confirms • address-tokens-transactions-confirmed-each-confirmation: fires on every confirmation up to confirmationsCount (required) • address-internal-transactions-confirmed: fires once a confirmed internal (contract-internal) transaction touches the address • address-internal-transactions-confirmed-each-confirmation: fires on every confirmation up to confirmationsCount (required) • block-mined: fires on every new block (no address field)

All event types except block-mined require an address.

Note: 'create' actions require confirmation. They return a preview with a one-time token instead of executing immediately.

Credits per call: 30

Credits are indicative only and may change at any time. The actual credits spent for each API request are returned in the response headers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressNoAddress to monitor (required for all event types except block-mined)
contextNoOptional context for the request - echoed back in response
networkYesNetwork name (e.g. mainnet, testnet, sepolia); supported networks vary per eventType
eventTypeYesEvent type to subscribe to
blockchainYesBlockchain protocol (e.g. bitcoin, ethereum); supported chains vary per eventType
callbackUrlYesWebhook callback URL
allowDuplicatesNoWhether to allow duplicate subscriptions for the same address/event. The API requires this field even though the spec marks it optional (verified live) — defaults to false.
callbackSecretKeyNoSecret key for HMAC-signing webhook payloads (recommended for verifying authenticity)
confirmationTokenNoConfirmation token from a previous preview response. IMPORTANT: You MUST present the warning and impact to the user and receive their explicit approval before passing this token. NEVER auto-confirm — always ask the user first. The token expires after 60 seconds.
receiveCallbackOnNoExact confirmation number to receive the callback on (address-coins-transactions-confirmed, address-tokens-transactions-confirmed, address-internal-transactions-confirmed only)
confirmationsCountNoNumber of confirmations to track, sending a callback on each one (required for the '-each-confirmation' event types)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does substantial work: it discloses the POST-to-callbackUrl delivery model, subscription persistence, pre-API rejection of invalid blockchain/eventType combinations, the two-step preview-then-confirm flow with a one-time token, and a 30-credit cost with the caveat that actual credits come from response headers. It omits authentication requirements and does not describe the preview/token response shape beyond the token itself.

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?

Well front-loaded: purpose, delivery behavior, and persistence come first, then a scannable bullet list of event types, then confirmations and cost. The event-type bullets are the valuable payload; the credits disclaimer paragraph is boilerplate that partially duplicates the cost line above it.

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 an 11-parameter mutation tool with no annotations and no output schema, the description covers the critical unknowns: what triggers a callback, which inputs are conditionally required, the delayed-confirmation execution model, and cost. It would be complete with a brief note on auth requirements and on what the preview/confirmation responses contain, but nothing essential is missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning the schema lacks: the per-event-type firing semantics (unconfirmed vs. confirmed vs. each-confirmation vs. block-mined) and the rule that all types except block-mined need an address. Cross-parameter constraints such as confirmationsCount being required for '-each-confirmation' and receiveCallbackOn applying only to certain types are also stated in the schema descriptions, so part of this is duplication rather than added value.

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?

States a specific verb and resource ('Create a webhook subscription for on-chain events') and enumerates exactly which event types can be subscribed to, so the agent knows precisely what the tool produces. It never names or contrasts with the sibling blockchain_events_manage, so sibling differentiation is left implicit rather than explicit.

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?

Gives clear conditions: this is for creating subscriptions, subscriptions persist until deleted (implying the manage sibling handles lifecycle), all event types except block-mined require an address, and create actions require confirmation. It does not explicitly say when to call this versus blockchain_events_manage, and no exclusions for duplicate subscriptions are framed as usage guidance.

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