Skip to main content
Glama

List side markets

list_markets
Read-onlyIdempotent

Use this when you want to find side bets to make. The competitions' side markets trading now or with a trading window still ahead (GET /api/markets), soonest deadline first: each with its competition (slug, title, status, deadline), status (off: betting is turned on and the operator has yet to open the market on chain; pending; trading), follows (entry or entrant: what each listed outcome is, below), house (excluded or listed: whether make.fun's own entries, "make.fun bot", are outcomes too, below; absent, excluded), trading_now (a window is open now: buys land only inside one), sells_now and sells_until (a holder can sell now, inside a window or between windows, until sells_until, the moment the competition's result is public; null: no live race, until its results are published), window (the one open now) and next_window (the next to open), each {kind: bounty, race or judging, from, until}, leader (the live listed entry with the highest YES price, the lowest outcome_id among a tie: outcome_id, label, which is its entrant's '@handle' (on a house entry 'make.fun bot', with house true and no entrant), entrant, their handle and picture, yes_ppm, yes_cents; get_market's entry.name is the entry's own name, and a bet is on what the market's follows says, that one entry or its entrant; a price is not a ranking: where its YES price ties another outcome's or sits at the market's floor, get_market's terms.m_floor_ppm, or its entrant has replaced that entry (get_market's replaced), no outcome leads, so never call it the favourite there), leader_leads (true only where that entry really leads: its YES price at least 0.1% above every other listed entry's and above the floor, and its entrant has not replaced it; false on a tie, at the floor or on a replaced entry, and no other entry is named in its place: name a favourite only when it is true), entries (how many entries, or entrants on a market that follows the entrant, are listed and live), volume_base_units and market (its route). A side market is a competition's market in real USDC on Solana, one YES/NO pair per listed outcome: a YES share pays 1 USDC if that outcome wins the competition, a NO share 1 USDC if it does not. A market's follows says what each listed outcome is and so what its YES pays: entry, one entry, whose YES pays 1 USDC a share only if that entry holds place 1 of the competition's official resolved standings (an entrant's newer entry is an outcome of its own); entrant, one entrant account, whose YES pays 1 USDC a share if the entry in place 1 is any entry of that entrant, the outcome's entry being the entrant's entry that counts now (it can change between two reads of one outcome), and a newer entry takes no new outcome and scratches nothing (an answer without follows is a market that follows the entry). On a market that follows the entrant replaced is never true and replaced_by_outcome_id is always null. A market's house says whether make.fun's own entries (its house entries and reference baselines, "make.fun bot") are outcomes: excluded, none is, and the market pays as the official resolved standings place the entrants (an answer without house is an excluded market); listed, each is an outcome of its own and the market pays whoever finishes first in the official results, a house entry included, so the entry that takes the 1st-place reward can lose this market to a house entry that finished ahead of it, though a house entry takes no place and no reward. A house entry's outcome has entry.house true, label "make.fun bot" and no entrant (entry.entrant null). A competition's own answer names its market too (get_competition's side_bets: its windows, status and trading_now; null where it has none). On a market with bounty betting and neither race betting nor a live race, buying does not stop at the deadline: the judging window (windows.judging, a window of kind judging) follows the bounty window with no gap, keeps buying open while the entries are judged and closes at least 10 minutes before the results are published, or sooner: once the results are public, the competition is withdrawn or bounty betting is turned off, and, on a competition the house judge ranks, once its Swiss rounds are over. Its until is never set ahead: it is extended a few minutes at a time while judging runs, so buying stops early if that pauses; read trading_now for whether a buy lands now. No entry is newly listed from the deadline on: buying goes on in the entries already listed and in NONE. Nothing is scratched from the deadline on, so an entry rejected while the entries are judged stays listed and can still be bought, but it cannot win: its YES shares pay nothing and its NO shares pay 1 USDC each. While betting is paused no row takes a buy (trading_now false, window and next_window null; a buy is refused 409 betting_paused), and while it is close-only the list is instead every market whose sells are open (sells_now true), so you find a position to sell or close. Read one with get_market. Paged: pass next_cursor back as cursor.

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

Input Schema

NameRequiredDescriptionDefault
limitNoPage size, 1 to 200 (default 50)
cursorNoThe previous page's next_cursor, for the next page (keep the other arguments the same)

Output Schema

NameRequiredDescriptionDefault
itemsYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / items / items / properties / competition / properties / status / enum
      Previous value: -[
      -  "draft",
      -  "open",
      -  "closed",
      -  "resolved"
      -]New value: +[
      +  "draft",
      +  "open",
      +  "closed",
      +  "resolved",
      +  "cancelled"
      +]
  2. Changed2 schema fields changed
    • changedOutput schema / properties / items / items / properties / next_window / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "from": {
      -        "type": "string"
      -      },
      -      "kind": {
      -        "enum": [
      -          "bounty",
      -          "race"
      -        ],
      -        "type": "string"
      -      },
      -      "until": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "from",
      -      "until",
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "from": {
      +        "type": "string"
      +      },
      +      "kind": {
      +        "enum": [
      +          "bounty",
      +          "race",
      +          "judging"
      +        ],
      +        "type": "string"
      +      },
      +      "until": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "from",
      +      "until",
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / items / items / properties / window / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "from": {
      -        "type": "string"
      -      },
      -      "kind": {
      -        "enum": [
      -          "bounty",
      -          "race"
      -        ],
      -        "type": "string"
      -      },
      -      "until": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "from",
      -      "until",
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "from": {
      +        "type": "string"
      +      },
      +      "kind": {
      +        "enum": [
      +          "bounty",
      +          "race",
      +          "judging"
      +        ],
      +        "type": "string"
      +      },
      +      "until": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "from",
      +      "until",
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed2 schema fields changed
    • addedOutput schema / properties / items / items / properties / house
      Added value: +{
      +  "enum": [
      +    "excluded",
      +    "listed"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / items / items / properties / leader / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "entrant": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "properties": {
      -              "handle": {
      -                "type": "string"
      -              },
      -              "image": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "required": [
      -              "handle",
      -              "image"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "label": {
      -        "type": "string"
      -      },
      -      "outcome_id": {
      -        "type": "number"
      -      },
      -      "yes_cents": {
      -        "type": "number"
      -      },
      -      "yes_ppm": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "outcome_id",
      -      "label",
      -      "yes_ppm",
      -      "yes_cents"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "entrant": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {
      +              "handle": {
      +                "type": "string"
      +              },
      +              "image": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "handle",
      +              "image"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "house": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "label": {
      +        "type": "string"
      +      },
      +      "outcome_id": {
      +        "type": "number"
      +      },
      +      "yes_cents": {
      +        "type": "number"
      +      },
      +      "yes_ppm": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "outcome_id",
      +      "label",
      +      "yes_ppm",
      +      "yes_cents"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Changed1 schema field changed
    • addedOutput schema / properties / items / items / properties / follows
      Added value: +{
      +  "enum": [
      +    "entry",
      +    "entrant"
      +  ],
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • addedOutput schema / properties / items / items / properties / leader_leads
      Added value: +{
      +  "type": "boolean"
      +}
  6. Added

TDQS

A4.4/5.0
Behavior5/5

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

The annotations already establish a safe, read-only, idempotent operation, but the description adds substantial behavioral context: status meanings, trading_now and window semantics, paused and close-only behavior, house entry handling, leader/leader_leads caveats, and paging requirements. These are exactly the kind of operational details an agent needs before calling and interpreting the result.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely long and dense, built from sprawling sentences and nested parentheticals. Because an output schema exists, much of the exhaustive field-by-field explanation of leader, entries, volume_base_units, window, and house is redundant for tool selection and bloats the definition. It is informative but poorly front-loaded and far larger than needed for a two-parameter list tool.

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?

Although the output schema already covers return values, the description leaves no significant behavioral or contextual gap for a complex trading-market listing tool. It explains market types, window states, paused and close-only modes, house-entry treatment, and pagination. The definition is more than complete enough for correct invocation and interpretation.

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 defines limit (page size 1–200, default 50) and cursor (previous page's next_cursor, keeping other arguments the same). The description only restates the cursor behavior with 'Paged: pass next_cursor back as cursor' and says nothing additional about limit. With the schema doing the heavy lifting, the baseline score of 3 is appropriate.

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 opening sentence states a specific verb and resource — list a competition's side markets trading now or with an upcoming trading window — and adds ordering by soonest deadline. It also distinguishes the tool from get_market by saying to read a single market with get_market. An agent can identify the tool's scope without inspecting the 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?

The description gives explicit when-to-use guidance ('when you want to find side bets to make') and names get_market as the alternative for reading one market. It also explains the close-only situation where the list changes to markets with open sells, which directly tells the agent when to use this tool to find a position to sell or close.

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.