Skip to main content
Glama

Coin lookup (paid, x402) — $0.0025

get_price
Read-onlyIdempotent

Use when you need a live crypto price API call: perp mark, funding rate, open interest and OKX spot for one coin. Crypto price API for trading agents ($0.0025/call, USDC on Base via x402). For one Hyperliquid perp (BTC, ETH, kPEPE, or HIP-3 like xyz:TSLA) returns perp mark price, hourly funding rate and annualized funding APR, open interest in coins and USD, 24h volume, premium, plus OKX spot last price and 24h change (no spot for HIP-3). Unknown symbol: error, no charge. Example: GET https://cryptofeed402.site/price/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_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesHyperliquid perp ticker, e.g. BTC, ETH, kPEPE; HIP-3 builder-dex perps as dex:TICKER, e.g. xyz:TSLA

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": {
      +        "as_of": {
      +          "description": "ISO-8601 UTC time of the snapshot",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "disclaimer": {
      +          "description": "Not financial advice notice",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "perp": {
      +          "description": "Hyperliquid perp: venue, mark_px, funding_hourly, funding_apr_pct, open_interest_coins, open_interest_usd, volume_24h_usd, premium",
      +          "properties": {
      +            "funding_apr_pct": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "funding_hourly": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "mark_px": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "open_interest_coins": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "open_interest_usd": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "premium": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "venue": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "volume_24h_usd": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "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"
      +        },
      +        "spot": {
      +          "description": "OKX spot: venue, last, open_24h, change_24h_pct (absent/null for HIP-3)",
      +          "properties": {
      +            "change_24h_pct": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "last": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "open_24h": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "venue": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "symbol": {
      +          "description": "Ticker requested",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "as_of",
      +        "disclaimer",
      +        "perp",
      +        "spot",
      +        "symbol"
      +      ],
      +      "title": "Paid HTTP 200 body of GET /price/{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. Changed3 schema fields changed
    • addedInput schema / properties / symbol / description
      Added value: +"Hyperliquid perp ticker, e.g. BTC, ETH, kPEPE; HIP-3 builder-dex perps as dex:TICKER, e.g. xyz:TSLA"
    • removedInput schema / properties / symbol / enum
      Removed value: -[
      -  "BTC",
      -  "ETH",
      -  "SOL",
      -  "HYPE",
      -  "NEAR",
      -  "AAVE"
      -]
    • addedInput schema / properties / symbol / pattern
      Added value: +"^(?:[A-Za-z]{1,10}:)?[A-Za-z0-9]{1,20}$"
  4. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only cover read-only/idempotent/open-world, but the description adds critical behavior an agent cannot infer: this is a paid call at $0.0025 USDC on Base via x402. It also discloses that unknown symbols error without charge and that HIP-3 perps return no spot price, both of which affect call planning.

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 trigger condition is front-loaded, and the dense enumeration of return fields is efficient. 'Crypto price API for trading agents' is somewhat redundant with the preceding sentence, but the concrete example URL earns its place. One minor trim would make it tight.

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?

With one parameter and an output schema present, the definition covers pricing, payment rail, error handling, and symbol scope well. The verbose listing of return fields is slightly redundant given the output schema, and no rate-limit or latency expectations are given. Nothing essential for a correct invocation is missing.

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

Parameters3/5

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

Schema coverage is 100% and the schema already documents the dex:TICKER pattern with the xyz:TSLA example. The description restates the same symbol forms (BTC, ETH, kPEPE, xyz:TSLA) without adding syntax or validation meaning beyond the schema. Baseline 3 applies when the schema does the work.

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 names a specific verb and resource: live perp mark, hourly funding rate, open interest, and OKX spot for a single coin. The scoping phrase 'for one Hyperliquid perp' clearly separates it from list-style siblings like get_perps. It never names an actual sibling tool, so differentiation is inferential 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?

'Use when you need a live crypto price API call' gives a clear usage context, and the per-call price plus x402 payment rail tell the agent when this is appropriate versus a free/cheaper path. It also states the failure mode ('Unknown symbol: error, no charge'), which is real guidance. No named alternative is offered, so there is no explicit when-not-to-use statement.

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.