Skip to main content
Glama
@cryptoapis-io/mcp-blockchain-events

@cryptoapis-io/mcp-blockchain-events

Official

Create blockchain event subscription

blockchain_events_create

Create a persistent webhook subscription for on-chain events like confirmed transactions, token transfers, or new blocks. CryptoAPIs then POSTs event data to your callback URL.

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "eventType": "<eventType>",
      "blockchain": "<blockchain>",
      "network": "<network>",
      "callbackUrl": "<callbackUrl>"
    },
    "name": "blockchain_events_create"
  }
}

Input 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/5.0
Behavior5/5

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

Annotations only say the call is not read-only, is open-world and non-idempotent; the description adds substantial context beyond that: subscriptions persist until deleted, invalid blockchain/eventType pairs are rejected before the API call, the 'create' action returns a preview plus one-time token rather than executing, and the token expires in 60 seconds. It also discloses the 30-credit cost and that actual credits come back in response headers.

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?

Purpose and delivery mechanism are front-loaded, then the event-type bullets, then the confirmation caveat and cost. The bulleted list is long but each entry carries distinct firing semantics rather than restating the enum, though the trailing 'credits are indicative only' sentence is somewhat verbose padding.

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?

For a non-idempotent, 11-parameter, open-world creation tool with no output schema, the description covers what is created, how delivery works, what happens on invocation (preview token, not immediate execution), and cost. Nothing an agent needs in order to call this correctly is missing.

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

Parameters5/5

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

Schema coverage is 100%, but the description supplies conditional constraints that the schema cannot express: address is required except for block-mined, confirmationsCount is mandatory for each-confirmation event types, and receiveCallbackOn is limited to the single-confirmation types. The per-event-type bullets explain what each enum value actually triggers, which is real meaning beyond the enum list.

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 opening sentence names a specific verb and resource ('Create a webhook subscription for on-chain events') and immediately explains the delivery mechanism (POST to callbackUrl). It never names a sibling such as blockchain_events_manage, so the agent must infer the boundary between creating and managing subscriptions from the names alone.

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?

Usage conditions are strong in the parameter domain: it states that all event types except block-mined require an address, that confirmationsCount is required for the '-each-confirmation' types, and that receiveCallbackOn applies only to the single-confirmation variants. It does not say when to prefer this over blockchain_events_manage for existing subscriptions, leaving that comparison to inference.

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