Skip to main content
Glama

Dinero en la Mesa — Perp DEX costs & funding

Webhook alerts on funding gaps and costs (Pro, 29 USDC)

alerts
Read-onlyIdempotent

PAID: 29 USDC on Base per 30 days on up to 3 pairs (status and cancel are free), via x402 (no account; an x402-enabled client pays automatically). A POST to your webhook the minute a rule starts to hold, checked every minute on the live books: a delta-neutral funding gap netting at least your threshold after opening and closing both legs, or a venue whose round-trip cost at your size drops to your threshold. Signed with HMAC-SHA256. We test your webhook first: if it does not answer, you are not charged.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "alerts"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesNosubscribe: rules, on up to 3 pairs
actionNosubscribe (paid, default), status or cancel (free)
secretNostatus/cancel: the secret given at subscribe
webhook_urlNohttps URL that receives the POSTs (subscribe)
subscriptionNostatus/cancel: the subscription id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / action
      Added value: +{
      +  "description": "subscribe (paid, default), status or cancel (free)",
      +  "enum": [
      +    "subscribe",
      +    "status",
      +    "cancel"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / rules
      Added value: +{
      +  "description": "subscribe: rules, on up to 3 pairs",
      +  "items": {
      +    "properties": {
      +      "days": {
      +        "description": "funding_gap: holding days (default 7)",
      +        "type": "number"
      +      },
      +      "max_cost_bps": {
      +        "description": "trading_cost: some venue round-trips at or below this",
      +        "type": "number"
      +      },
      +      "min_net_usd": {
      +        "description": "funding_gap: best couple nets at least this",
      +        "type": "number"
      +      },
      +      "pair": {
      +        "description": "Base asset of the perpetual, e.g. BTC",
      +        "enum": [
      +          "BTC",
      +          "ETH",
      +          "SOL",
      +          "XRP",
      +          "BNB",
      +          "DOGE",
      +          "HYPE",
      +          "SUI",
      +          "LINK",
      +          "AAVE",
      +          "ENA",
      +          "LTC"
      +        ],
      +        "type": "string"
      +      },
      +      "size_usd": {
      +        "description": "trading_cost: order size in USD",
      +        "type": "number"
      +      },
      +      "size_usd_per_leg": {
      +        "description": "funding_gap: USD per leg (default 10000)",
      +        "type": "number"
      +      },
      +      "type": {
      +        "enum": [
      +          "funding_gap",
      +          "trading_cost"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "pair"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
    • addedInput schema / properties / secret
      Added value: +{
      +  "description": "status/cancel: the secret given at subscribe",
      +  "type": "string"
      +}
    • addedInput schema / properties / subscription
      Added value: +{
      +  "description": "status/cancel: the subscription id",
      +  "type": "string"
      +}
    • addedInput schema / properties / webhook_url
      Added value: +{
      +  "description": "https URL that receives the POSTs (subscribe)",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.6/5.0
Behavior2/5

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

The description itself discloses a great deal beyond the annotations: 29 USDC per 30 days via x402, no account required, up to 3 pairs, HMAC-SHA256 signing, and a webhook test before any charge. However, it describes creating a paid subscription (and canceling one), which conflicts with readOnlyHint=true claiming the tool does not modify its environment; the payment and subscription creation are exactly the side effects an agent would otherwise assume away.

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 cost and payment mechanism are front-loaded in the first clause, followed by trigger mechanics and signing. It is dense but nearly every sentence carries information; only the webhook-test remark could be trimmed without loss.

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 a paid, externally-facing subscription tool with no output schema, the description covers price, payment path, trigger conditions, signature verification, and pre-charge testing. Gaps remain around what 'status' returns and notification delivery/retry behavior, but the essentials for correct invocation are present.

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 per-field meanings are already documented; the description still adds useful framing such as the 3-pair cap, the free status/cancel actions, and the x402 payment path for subscribe. It does not explain how a subscription id and secret are obtained for later status/cancel calls.

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 description states a specific capability: a webhook that fires a POST the moment a funding-gap or round-trip-cost rule holds, checked every minute on live books. That is concrete enough to separate it from point-in-time query siblings like funding_rates or trading_cost, even though no sibling is named explicitly.

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?

It makes clear this is a push/notification service rather than an on-demand lookup, and that 'status' and 'cancel' are free while 'subscribe' is paid, which guides action selection. It stops short of explicitly telling the agent when to prefer funding_rates or trading_cost instead of a subscription.

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