Skip to main content
Glama

hl_outcomes

Read-only

Discover and filter Hyperliquid HIP-4 outcome markets on GDEX, returning normalized IDs, sides, prices, states, rules, and settlement details.

Instructions

Discover Hyperliquid HIP-4 outcome markets (GDEX has no Polymarket/Kalshi). Returns normalised markets: outcomeId, title, sides[] (label, coin "#", balanceCoin "+", price = current mid), quoteToken (collateral, held in the HL spot balance), state (active | pre_launch | expired | settled), rules (price 0.00001-0.99999 tick 0.00001, whole-contract size, min order notional 11 quote), settlement (no claim via GDEX). withVolume=true adds volume24h {volume, asOf, source, coverage} with a bounded wait. raw=true returns the backend payload unchanged.

Input Schema

NameRequiredDescriptionDefault
rawNoReturn the raw backend payload instead
limitNoMarkets per page, default 20
queryNoCase-insensitive text match on title / side labels / params, or an exact outcomeId
stateNoFilter by trading state, e.g. "active"
detailNoFull market records (rules, params, settlement). Default: compact rows
offsetNoPagination offset (use nextOffset)
sortByNovolume: highest 24h volume first (implies withVolume); expiry: soonest first
withVolumeNoAttach 24h volume (bounded by volumeTimeoutMs, default 2500)
excludeFallbackNoHide "none of the listed outcomes" legs
volumeTimeoutMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv5.1.0
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "Full market records (rules, params, settlement). Default: compact rows",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / dex
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / excludeFallback
      Added value: +{
      +  "description": "Hide \"none of the listed outcomes\" legs",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Markets per page, default 20",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Pagination offset (use nextOffset)",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / query
      Added value: +{
      +  "description": "Case-insensitive text match on title / side labels / params, or an exact outcomeId",
      +  "type": "string"
      +}
    • addedInput schema / properties / raw
      Added value: +{
      +  "description": "Return the raw backend payload instead",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / sortBy
      Added value: +{
      +  "description": "volume: highest 24h volume first (implies withVolume); expiry: soonest first",
      +  "enum": [
      +    "volume",
      +    "expiry"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / state
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "active",
      +        "pre_launch",
      +        "expired",
      +        "settled"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "items": {
      +        "$ref": "#/properties/state/anyOf/0"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "Filter by trading state, e.g. \"active\""
      +}
    • removedInput schema / properties / status
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / volumeTimeoutMs
      Added value: +{
      +  "maximum": 10000,
      +  "minimum": 100,
      +  "type": "integer"
      +}
    • changedInput schema / properties / withVolume / description
      Previous value: -"Include 24h volume per market (slower)"New value: +"Attach 24h volume (bounded by volumeTimeoutMs, default 2500)"
  2. First observedv4.11.3

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered; the description adds genuinely new behavior: that withVolume performs a bounded wait, that raw returns the backend payload unchanged, that quoteToken collateral sits in the HL spot balance, and that settlement cannot be claimed via GDEX. It stops short of stating rate limits, pagination limits, or auth prerequisites, so it is strong but not exhaustive.

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-loaded with purpose then return shape, with no filler sentences. It is a single dense paragraph rather than structured bullets, which marginally hurts scannability for ten parameters, but every clause carries information.

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 no output schema, the description correctly shoulders the return-value burden and enumerates fields, states, rules, and settlement semantics, which is what an agent needs for a discovery tool. It leaves minor gaps around auth/preconditions and explicit sibling routing, but is otherwise complete for a read-only listing call.

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 90%, so baseline is 3, but the description goes beyond the schema by explaining what the returned fields mean (outcomeId, sides, price = current mid, tick size, min order notional) and by clarifying the effect of withVolume, raw, and detail. The interaction note that sortBy=volume implies withVolume is a useful cross-parameter semantic the schema does not state.

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?

Opens with a specific verb and resource ('Discover Hyperliquid HIP-4 outcome markets') and immediately differentiates scope by noting GDEX has no Polymarket/Kalshi, which separates it from siblings like hl_outcome_account or hl_create_outcome_order. An agent knows this is the market-discovery call.

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

Usage Guidelines3/5

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

Usage is implied (browse/filter outcome markets) and the GDEX-vs-competitors note gives context, but there is no explicit when-to-use or when-not-to-use guidance and no named alternative such as get_hl_outcome_volumes for volume-only queries. The agent must infer selection from the parameter list.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools