Skip to main content
Glama

Perps + news context, many coins (paid, x402) — $0.01

get_perps_context
Read-onlyIdempotent

Use when a trading agent needs one call covering perp state, funding, OI and news sentiment for many coins. One-call perps + news market scan for trading agents ($0.01/call, USDC on Base via x402). For the default set (watchlist + coins in the news, up to 25) or 1-20 symbols you pass: Hyperliquid mark, oracle, 24h change, funding hourly/8h/annualized, open interest USD, 24h volume, premium, extreme-funding rank, joined with news sentiment, headline attention vs 7-day average and neutral flags. Facts only. Errors are not charged. Example: GET https://cryptofeed402.site/perps/context?symbols=BTC,ETH

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": {
      "symbols": [
        "BTC",
        "ETH",
        "SOL"
      ]
    },
    "name": "get_perps_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolsNoOptional Hyperliquid main-dex tickers; omit for the default set (watchlist + coins in the news)

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",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "coins": {
      +          "description": "Per coin: coin, in_watchlist, perp{}, sentiment{}, attention{}, flags{}, active_flags[]",
      +          "items": {
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "count": {
      +          "description": "Number of coins returned",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "disclaimer": {
      +          "description": "Not financial advice notice",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "freshness": {
      +          "description": "Per-component freshness: perp, sentiment, attention",
      +          "properties": {
      +            "attention": {
      +              "type": "object"
      +            },
      +            "perp": {
      +              "type": "object"
      +            },
      +            "sentiment": {
      +              "type": "object"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "method": {
      +          "description": "How fields are computed",
      +          "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"
      +        },
      +        "selection": {
      +          "description": "How coins were chosen (default set or symbols param)",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "source": {
      +          "description": "Upstream sources",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "as_of",
      +        "coins",
      +        "count",
      +        "disclaimer",
      +        "freshness",
      +        "method",
      +        "selection",
      +        "source"
      +      ],
      +      "title": "Paid HTTP 200 body of GET /perps/context",
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already carry the safety profile (readOnly, idempotent, open-world, non-destructive), yet the description still adds real operational context: $0.01/call paid in USDC on Base via x402, and "Errors are not charged," which tells the agent a failed call costs nothing and is safe to retry. It also enumerates the returned fields and asserts "Facts only," though it omits data freshness and rate limits.

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?

Front-loaded with the when-to-use clause, then scope, then pricing, then the field inventory, closing with a concrete GET example. The field list is long but each item is a distinct returned quantity, and there is only minor overlap between the price mentioned in the second sentence and the title's $0.01.

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?

An output schema exists, so the enumerated return fields are bonus rather than necessity, and the description still covers payment mechanics, error charging, and default-set behaviour. For a single optional parameter, read-only paid endpoint, nothing an agent needs to call it correctly 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 optional symbols array, its pattern, and the omit-for-default behaviour, so the baseline of 3 applies. The description adds only a small increment — the default set is sized at "up to 25" while explicit symbols are "1-20" — which is genuinely useful but marginal against a fully documented schema.

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?

Specific verb and resource: "one call covering perp state, funding, OI and news sentiment for many coins," which implicitly positions it against the single-asset sibling get_perps and the bundle sibling get_bundle_brief_sentiment_perps. It never names an alternative, so the multi-coin scope is the only differentiator the agent gets.

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?

Opens with an explicit trigger: "Use when a trading agent needs one call covering perp state, funding, OI and news sentiment for many coins." That is a clear when-to-use, but there is no when-not guidance (e.g. use get_perps for a single coin, or get_extreme_funding when funding is the sole concern) and no named alternatives.

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.