Skip to main content
Glama

Spot ticker (paid, x402) — $0.002

get_spot
Read-onlyIdempotent

Use when you need a live crypto spot price, bid/ask and spread for a -USDT pair on OKX. Crypto spot price API ($0.002/call, USDC on Base via x402): OKX spot ticker for any live -USDT pair: last, bid/ask with sizes, mid, spread in bps, 24h open/high/low/change, UTC-day change and 24h volume (base and USDT). Unknown pair: no charge. Example: GET https://cryptofeed402.site/spot/BTC

Example tool call

This call uses example arguments supplied in the tool’s input schema.

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

Input Schema

NameRequiredDescriptionDefault
symbolYesBase ticker, e.g. BTC, PEPE, TON

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "accepts": {
      +          "items": {
      +            "properties": {
      +              "amount": {
      +                "description": "USDC atomic units (6 decimals)",
      +                "type": "string"
      +              },
      +              "asset": {
      +                "type": "string"
      +              },
      +              "extra": {
      +                "type": "object"
      +              },
      +              "maxTimeoutSeconds": {
      +                "type": "number"
      +              },
      +              "network": {
      +                "const": "eip155:8453",
      +                "type": "string"
      +              },
      +              "payTo": {
      +                "type": "string"
      +              },
      +              "scheme": {
      +                "const": "exact",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "scheme",
      +              "network",
      +              "amount",
      +              "asset",
      +              "payTo"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "resource": {
      +          "properties": {
      +            "description": {
      +              "type": "string"
      +            },
      +            "mimeType": {
      +              "type": "string"
      +            },
      +            "url": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "x402Version": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "x402Version",
      +        "accepts"
      +      ],
      +      "title": "x402 PaymentRequired (what this MCP tool returns, isError=true)",
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "age_seconds": {
      +          "description": "Quote age",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "as_of": {
      +          "description": "Upstream time",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "ask": {
      +          "description": "Best ask",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "ask_size": {
      +          "description": "Best ask size",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "bid": {
      +          "description": "Best bid",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "bid_size": {
      +          "description": "Best bid size",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "change_24h_pct": {
      +          "description": "24h change %",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "change_utc_day_pct": {
      +          "description": "UTC-day change %",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "disclaimer": {
      +          "description": "Not financial advice notice",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "generated_at": {
      +          "description": "Response time",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "high_24h": {
      +          "description": "24h high",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "last": {
      +          "description": "Last trade price",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "low_24h": {
      +          "description": "24h low",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "market": {
      +          "description": "spot",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "mid": {
      +          "description": "Mid price",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "open_24h": {
      +          "description": "Price 24h ago",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "open_utc0": {
      +          "description": "UTC-day open",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "pair": {
      +          "description": "OKX pair, e.g. BTC-USDT",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "provenance": {
      +          "description": "Optional provenance on paid 200s",
      +          "properties": {
      +            "data_sha256": {
      +              "type": "string"
      +            },
      +            "fetched_at": {
      +              "type": "string"
      +            },
      +            "max_age_s": {
      +              "type": "number"
      +            },
      +            "source": {
      +              "type": "string"
      +            },
      +            "sources": {
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "quote_note": {
      +          "description": "Quote notes",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "source": {
      +          "description": "Upstream",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "spread_bps": {
      +          "description": "Bid/ask spread in bps",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "symbol": {
      +          "description": "Base ticker",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "venue": {
      +          "description": "okx",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "volume_24h_base": {
      +          "description": "24h volume (base)",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "volume_24h_usdt": {
      +          "description": "24h volume (USDT)",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "age_seconds",
      +        "as_of",
      +        "ask",
      +        "ask_size",
      +        "bid",
      +        "bid_size",
      +        "change_24h_pct",
      +        "change_utc_day_pct",
      +        "disclaimer",
      +        "generated_at",
      +        "high_24h",
      +        "last",
      +        "low_24h",
      +        "market",
      +        "mid",
      +        "open_24h",
      +        "open_utc0",
      +        "pair",
      +        "quote_note",
      +        "source",
      +        "spread_bps",
      +        "symbol",
      +        "venue",
      +        "volume_24h_base",
      +        "volume_24h_usdt"
      +      ],
      +      "title": "Paid HTTP 200 body of GET /spot/{symbol}",
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "symbol": "BTC"
      +  }
      +]
    • addedInput schema / properties / symbol / examples
      Added value: +[
      +  "BTC"
      +]
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, open-world, and non-destructive, yet the description adds genuinely non-structured behavior: paid endpoint at $0.002/call settled in USDC on Base via x402, and no charge for an unknown pair. That billing and failure-charging detail is exactly what an agent needs before invoking a metered tool.

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?

Front-loads the usage trigger and keeps everything to a couple of dense sentences with no filler. Mild redundancy between "Crypto spot price API ..." and "OKX spot ticker for any live <SYMBOL>-USDT pair" costs it a point but does not impede parsing.

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?

With one fully documented parameter, rich annotations, and an output schema, the definition covers everything an agent needs: trigger, pair format, cost, and failure billing. Nothing material is left ambiguous for a single-parameter read tool.

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% and the symbol field is already documented, so the baseline is 3. The description goes further by clarifying that the symbol is the base ticker of an implicit <SYMBOL>-USDT quote pair and provides a concrete call example (GET .../spot/BTC).

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?

States a specific verb and resource — live crypto spot price, bid/ask, and spread for a <SYMBOL>-USDT pair on OKX — and enumerates the returned fields (last, mid, spread bps, 24h OHLC/change, volume). Naming the exchange and the exact pair convention sharply scopes it against generic price tools like get_price.

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?

"Use when you need a live crypto spot price, bid/ask and spread" gives a clear trigger condition and implicitly limits input to <SYMBOL>-USDT pairs. It does not explicitly state when to prefer a sibling such as get_candles or get_price, so there is no exclusion guidance.

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.