Skip to main content
Glama

subscribe_notifications

Subscribe a wallet to push notifications (order_filled / offer_received / saved_search) via an HMAC-signed webhook — the agent-native alternative to polling. Two-step: call WITHOUT signature to get the exact message to sign (EIP-191 personal_sign), then call again WITH the signature. chainId is signed over and the signature is verified on THAT chain, so pass the chain the wallet actually signs on (smart-wallet signatures do not validate cross-chain). Each signed message is SINGLE-USE: resending the same body returns 409 replayed_signature — retry with a fresh timestamp and a new signature. The response includes the webhook HMAC secret ONCE (verify x-market0x-signature = hex(HMAC-SHA256(rawBody, secret))).

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": {
      "wallet": "<wallet>",
      "chainId": "<chainId>",
      "channel": "<channel>",
      "events": "<events>",
      "timestamp": "<timestamp>"
    },
    "name": "subscribe_notifications"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventsYes
walletYes
chainIdYeschain the wallet signs on; it is part of the signed message
channelYes
signatureNoEIP-191 signature of the canonical message; omit to receive the message to sign
timestampYesunix seconds; must be within 10 minutes of now
webhookUrlNohttps URL; required for the webhook channel
savedSearchNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does so well: it discloses the single-use signature semantics and the exact 409 replayed_signature failure, the cross-chain validation constraint for smart-wallet signatures, and that the HMAC secret is returned only ONCE along with the verification formula. These are non-obvious failure modes an agent could not infer from the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded: the verb, resource, and event list lead, followed by protocol, failure modes, and return-value caveats. Every clause carries operational information — no filler, no restatement of the tool name.

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 8-parameter mutation tool with no annotations and no output schema, the description covers the signature flow, the replay failure, and the one-time secret return. Gaps remain around the response shape beyond the secret, when to choose `inapp` over `webhook`, and how `savedSearch` affects the subscription — meaningful but secondary for correct invocation.

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?

With 50% schema description coverage, the description compensates for the high-risk parameters: `chainId` is explained as part of the signed message and validated on that chain, `signature` is explained as omittable to fetch the message, and the retry guidance clarifies that `timestamp` must be regenerated. It says nothing about `savedSearch` sub-fields or the `inapp` channel, leaving those to the schema.

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?

Uses a specific verb and resource ('Subscribe a wallet to push notifications'), enumerates the exact event types, and states the transport mechanism (HMAC-signed webhook). It also positions the tool against a non-sibling alternative ('the agent-native alternative to polling'), so the agent knows what class of capability this is.

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 a precise two-step call protocol: call without `signature` first to obtain the message, then call again with the EIP-191 signature. It also specifies a retry path for 409 replayed_signature and a chain-selection rule. It stops short of naming sibling tools (unsubscribe_notifications, list_subscriptions) for the inverse/read operations, so routing to alternatives is left implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources