Skip to main content
Glama

Agent Data Tools: Prices and DeFi

All crypto prices, Hyperliquid: mid prices of every perpetual

hyperliquid_prices
Read-only

Current mid prices of every Hyperliquid perpetual in one call (BTC, ETH, SOL, HYPE and the rest of the list), as a coin-to-price map, or only the coins you name. Read live from Hyperliquid's public API. Use for a quick price snapshot of many coins at once, portfolio marks or a price ticker; for funding and open interest use hyperliquid_market. Example: coins=BTC,ETH,SOL. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": "hyperliquid_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinsNoOptional comma-separated symbols such as BTC,ETH,SOL (default: every perpetual)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, open-world and non-destructive status, and the description adds substantial context beyond them: the data source (Hyperliquid public API), the cost model ($0.002/call via x402 USDC or card key), the free tier and failure policy, and the warning that repeats are not free. This is exactly the kind of cost/freshness information an agent needs to decide whether to call it or cache the result. Nothing here contradicts the annotations.

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 core capability is front-loaded in the first sentence, followed by use cases, alternative, example and commercial terms in a logical order. The pricing/charging sentence is long and could be tightened, and 'all crypto prices' echoes the title, but no sentence is truly wasted.

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 one-optional-parameter tool with no output schema, the description covers the input form, the default scope, and the return structure (coin-to-price map). Combined with annotations and the full schema coverage, an agent has everything required to call it correctly and interpret the result.

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% for the single optional 'coins' parameter, and the description largely restates the schema's own comma-separated example ('coins=BTC,ETH,SOL'). It does add the behavioral consequence of omitting the param (defaults to every perpetual), but that is already implied by the schema default, so the baseline 3 applies.

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?

The description names a concrete verb and resource ('Current mid prices of every Hyperliquid perpetual') and states both the default output shape (coin-to-price map) and the narrowed form ('only the coins you name'). It explicitly distinguishes itself from hyperliquid_market, so an agent can separate the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives positive triggers ('quick price snapshot of many coins at once, portfolio marks or a price ticker') and an explicit exclusion routing to hyperliquid_market for funding and open interest. Both the when and the when-not are stated rather than inferred.

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