@0xinsider/mcp 3.15.0 → 3.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/README.md +32 -12
  2. package/dist/catalog.generated.d.ts +12 -0
  3. package/dist/catalog.generated.d.ts.map +1 -1
  4. package/dist/catalog.generated.js +15 -0
  5. package/dist/catalog.generated.js.map +1 -1
  6. package/dist/client.d.ts +3 -0
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/client.js.map +1 -1
  9. package/dist/constants.d.ts +1 -1
  10. package/dist/constants.js +1 -1
  11. package/dist/product-cli/browser.d.ts +17 -0
  12. package/dist/product-cli/browser.d.ts.map +1 -0
  13. package/dist/product-cli/browser.js +72 -0
  14. package/dist/product-cli/browser.js.map +1 -0
  15. package/dist/product-cli/index.d.ts.map +1 -1
  16. package/dist/product-cli/index.js +40 -11
  17. package/dist/product-cli/index.js.map +1 -1
  18. package/dist/product-cli/login-prompt.d.ts +18 -0
  19. package/dist/product-cli/login-prompt.d.ts.map +1 -0
  20. package/dist/product-cli/login-prompt.js +56 -0
  21. package/dist/product-cli/login-prompt.js.map +1 -0
  22. package/dist/product-cli/oauth.d.ts +5 -1
  23. package/dist/product-cli/oauth.d.ts.map +1 -1
  24. package/dist/product-cli/oauth.js +42 -4
  25. package/dist/product-cli/oauth.js.map +1 -1
  26. package/dist/product-cli/operations.d.ts.map +1 -1
  27. package/dist/product-cli/operations.js +4 -1
  28. package/dist/product-cli/operations.js.map +1 -1
  29. package/dist/sdk/client.d.ts +134 -5
  30. package/dist/sdk/client.d.ts.map +1 -1
  31. package/dist/sdk/client.js +98 -5
  32. package/dist/sdk/client.js.map +1 -1
  33. package/dist/sdk/errors.d.ts +15 -2
  34. package/dist/sdk/errors.d.ts.map +1 -1
  35. package/dist/sdk/errors.js +23 -1
  36. package/dist/sdk/errors.js.map +1 -1
  37. package/dist/sdk/index.d.ts +5 -5
  38. package/dist/sdk/index.d.ts.map +1 -1
  39. package/dist/sdk/index.js +2 -2
  40. package/dist/sdk/index.js.map +1 -1
  41. package/dist/sdk/schema.d.ts +415 -104
  42. package/dist/sdk/schema.d.ts.map +1 -1
  43. package/dist/sdk/stream.d.ts +45 -5
  44. package/dist/sdk/stream.d.ts.map +1 -1
  45. package/dist/sdk/stream.js +52 -4
  46. package/dist/sdk/stream.js.map +1 -1
  47. package/dist/sdk/webhooks.d.ts +19 -6
  48. package/dist/sdk/webhooks.d.ts.map +1 -1
  49. package/dist/sdk/webhooks.js +10 -3
  50. package/dist/sdk/webhooks.js.map +1 -1
  51. package/dist/server.d.ts.map +1 -1
  52. package/dist/server.js +5 -2
  53. package/dist/server.js.map +1 -1
  54. package/dist/tools/games.d.ts +2 -0
  55. package/dist/tools/games.d.ts.map +1 -1
  56. package/dist/tools/games.js +124 -6
  57. package/dist/tools/games.js.map +1 -1
  58. package/dist/tools/get-position-timeline.js +1 -1
  59. package/dist/tools/get-whale-trades.js +2 -2
  60. package/dist/tools/get-whale-trades.js.map +1 -1
  61. package/dist/tools/market-reads.d.ts +1 -0
  62. package/dist/tools/market-reads.d.ts.map +1 -1
  63. package/dist/tools/market-reads.js +45 -0
  64. package/dist/tools/market-reads.js.map +1 -1
  65. package/dist/tools/pick-of-the-day.js +5 -5
  66. package/dist/tools/pick-of-the-day.js.map +1 -1
  67. package/dist/tools/read-parity.js +8 -8
  68. package/dist/tools/read-parity.js.map +1 -1
  69. package/dist/tools/trader-reads.js +2 -2
  70. package/package.json +2 -2
@@ -27,9 +27,9 @@ Args:
27
27
  - window (string, optional): all (default, the whole catalog) or now: games the provider reports in play, plus any other game whose kickoff was at most 3 hours ago or is still to come, without ended, postponed or cancelled games
28
28
  - limit (number, 1-100, default 20)
29
29
  - cursor (string, optional): opaque gms_v1_ cursor from next_cursor. It pins the page position, not a snapshot: the catalog is live, so a game added or removed between pages moves with it
30
- - expand (string or string[], optional): sharp_money adds each game's sharp_money, the object get_game_sharp_money returns, read from the sport board's cached aggregate (one board read per sport, so a page stays fast). A game the board did not evaluate reads status not_computed: call get_game_sharp_money for it. A sport whose aggregate could not be read reads status unavailable while the rest of the page is served. Pro and Max. settlement adds each winner market's settlement, the block list_game_markets serves (status observed, not_posed or unavailable; oracle_status, payouts, result outcome or split, the 50-50; resolved_at), from the same store: it never waits for Polymarket, so a game not read lately reads unavailable while its read starts. Every plan. Pass both, as an array, for both blocks: the costs add
30
+ - expand (string or string[], optional): sharp_money adds each game's sharp_money, the object get_game_sharp_money returns, read from the sport board's cached aggregate (one board read per sport, so a page stays fast). A game the board did not evaluate reads status not_computed: call get_game_sharp_money for it. A sport whose aggregate could not be read reads status unavailable while the rest of the page is served. Pro and Max. settlement adds each winner market's settlement, the block list_game_markets serves (status observed, not_posed or unavailable; oracle_status, payouts, result outcome or split, the 50-50; resolved_at), from the same store: it never waits for Polymarket: a market we saw settle reads its recorded settlement, and any other market of a game not read lately reads unavailable while its read starts. Every plan. Pass both, as an array, for both blocks: the costs add
31
31
 
32
- Returns: data, has_more, next_cursor, as_of, coverage and meta. Read coverage before reading an empty page: it names the sports and leagues this deployment serves and any scope whose source was unavailable for this read, so an unserved sport is never confused with a quiet night. A sport or status this deployment does not serve returns an empty page, not an error. status.state keeps postponed, cancelled, suspended and delayed distinct from a plain 'not live', and a kickoff in the past is never read as live on its own. Scores are the provider's own strings, because a set score and a run total are not both integers. Carries no sharp-money split unless expand is sharp_money, and no holder identity; holders stay on get_market_holders.`,
32
+ Returns: data, has_more, next_cursor, as_of, coverage and meta. Read coverage before reading an empty page: it names the sports and leagues this deployment serves and any scope whose source was unavailable for this read, so an unserved sport is never confused with a quiet night. A sport this deployment does not serve returns an empty page, not an error; a status outside the listed values is invalid_query (upcoming games are scheduled). status.state keeps postponed, cancelled, suspended and delayed distinct from a plain 'not live', and a kickoff in the past is never read as live on its own. Scores are the provider's own strings, because a set score and a run total are not both integers. Carries no sharp-money split unless expand is sharp_money, and no holder identity; holders stay on get_market_holders.`,
33
33
  inputSchema: z.object({
34
34
  sport: z.string().optional()
35
35
  .describe("Canonical sport bucket, case-insensitive, with - and _ read as a space; omitted means every covered sport. A bucket this deployment does not serve returns an empty page"),
@@ -100,7 +100,7 @@ export function registerGetGame(server, client) {
100
100
  Args:
101
101
  - event_slug (string, required): the game's event slug, for example nfl-buf-nyj-2026-09-22. Matched case-insensitively
102
102
 
103
- Returns: the game object with the envelope's meta. status.state keeps postponed, cancelled, suspended and delayed distinct from a plain 'not live'. Each game's own coverage reports whether scores, competitor provider ids and the schedule were available: when competitors reads labels, do not join on names. A slug outside the published coverage answers 404, including a real Polymarket event in a sport this deployment does not serve; list_games names what is covered. Each winner market carries settlement, the block list_game_markets serves (status observed, not_posed or unavailable; oracle_status, payouts, result outcome or split, the 50-50; resolved_at); it never waits for Polymarket, so a game not read lately reads unavailable, and a read a moment later may answer. Carries no sharp-money split and no holder identity.`,
103
+ Returns: the game object with the envelope's meta. status.state keeps postponed, cancelled, suspended and delayed distinct from a plain 'not live'. Each game's own coverage reports whether scores, competitor provider ids and the schedule were available: when competitors reads labels, do not join on names. A slug outside the published coverage answers 404, including a real Polymarket event in a sport this deployment does not serve; list_games names what is covered. Each winner market carries settlement, the block list_game_markets serves (status observed, not_posed or unavailable; oracle_status, payouts, result outcome or split, the 50-50; resolved_at); it never waits for Polymarket: a market we saw settle reads its recorded settlement, and any other market of a game not read lately reads unavailable, and a read a moment later may answer. Carries no sharp-money split and no holder identity.`,
104
104
  inputSchema: z.object({
105
105
  event_slug: z.string().trim().min(1)
106
106
  .describe("The game's event slug, for example nfl-buf-nyj-2026-09-22; matched case-insensitively"),
@@ -119,7 +119,7 @@ Returns: the game object with the envelope's meta. status.state keeps postponed,
119
119
  export function registerListGameMarkets(server, client) {
120
120
  server.registerTool("list_game_markets", {
121
121
  title: "List a game's markets",
122
- description: `Every stored Polymarket market of one event_slug: the moneyline, spreads, totals, team totals, half and quarter lines, player props and the rest, plus the markets of the event's child events (a soccer game's exact score, halftime result and more-markets events), each with its own event_slug. Each row carries the condition_id, the provider's sports_market_type and groupItemTitle, the provider's typed line and, when stated, the outcome index it belongs to, both outcome labels with their CLOB token ids, active or closed status, and settlement: how Polymarket's oracle settled or is settling the market (status observed, not_posed or unavailable; oracle_status, the provider lifecycle state such as proposed, disputed or resolved; settled; payouts, micro-USDC per share per outcome index; result outcome or split, the 50-50; winning_outcome_index; was_disputed; resolved_at; expected_settlement_time and settlement_time_basis; proposed_answer for a pending round; observed_at; a null is unknown). Ordered by sports_market_type, then line, then condition_id. Pass a condition_id to get_market_holders, get_market_flow or get_market_snapshot.
122
+ description: `Every stored Polymarket market of one event_slug: the moneyline, spreads, totals, team totals, half and quarter lines, player props and the rest, plus the markets of the event's child events (a soccer game's exact score, halftime result and more-markets events), each with its own event_slug. Each row carries the condition_id, the provider's sports_market_type and groupItemTitle, the provider's typed line and, when stated, the outcome index it belongs to, both outcome labels with their CLOB token ids, active or closed status, and settlement: how Polymarket's oracle settled or is settling the market (status observed, not_posed or unavailable; oracle_status, the provider lifecycle state such as proposed, disputed or resolved; settled; payouts, micro-USDC per share per outcome index; result outcome or split, the 50-50; winning_outcome_index; was_disputed; resolved_at, null on a resolved UMA question row, which carries none; oracle_updated_at, Polymarket's last_update_timestamp, its latest lifecycle change and never a resolution time: on a resolved UMA question row, when UMA's answer settled the question; expected_settlement_time and settlement_time_basis; proposed_answer for a pending round; observed_at, on a settled market when we first saw the settlement, which never moves; a null is unknown). Ordered by sports_market_type, then line, then condition_id. Pass a condition_id to get_market_holders, get_market_flow or get_market_snapshot.
123
123
 
124
124
  Args:
125
125
  - event_slug (string, required): the event slug from list_games, get_game or a search_markets result, for example nba-bos-orl-2026-11-01. Matched case-insensitively. Live, upcoming and settled events all answer
@@ -127,7 +127,7 @@ Args:
127
127
  - status (string, optional): active, closed or all (default all)
128
128
  - limit (number, 1-100, default 20)
129
129
  - cursor (string, optional): opaque gmk_v1_ cursor from next_cursor, sent with the same filters
130
- - expand (string[], optional): sharp_money adds each row's sharp_money: status (computed, not_computed or unavailable; the first read of a game can be unavailable while its split is built, so retry after a few seconds), trader_count, per-outcome usd and S/A/B wallet counts, and money_as_of, the game page's per-line split. quotes adds each outcome's quote, the figures get_market_snapshot reads, for the whole page in one cache read and on every plan: status (observed; no_orderbook when the provider confirmed the outcome has no book; unavailable when nothing is cached yet, every figure null: the read starts covering the page's open markets, so read again after a few seconds), price (0 to 1, the price Polymarket shows) with price_basis (midpoint when the best bid and ask are at most $0.10 apart, else last_trade) and price_observed_at, best_bid and best_ask with book_observed_at, and book_unavailable_reason (null with a book; else cache_miss, no_orderbook, missing_provider_token_id, or stream_capacity: API reads already hold every live book they may open, so reading again does not help until fewer markets are read). A null figure is one the cache does not hold, but a null best_bid or best_ask beside book_observed_at is a side with no orders. It adds 1 to the cost. trading_terms adds each row's trading_terms from the market's Gamma record, on every plan: status (observed; not_listed when Gamma's market list returns no record for it; unavailable when no read is in hand yet, every figure null: read again after a few seconds), fees_enabled, fee_schedule (rate, exponent, taker_only and rebate_rate, the fraction of taker fees rebated to the resting maker), rewards_min_size (shares), rewards_max_spread (cents from the midpoint), reward_allocations (rewards_amount, rewards_daily_rate, start_date, end_date), seconds_delay (seconds before a newly placed marketable order can match), tick_size and min_order_size_shares (the smallest order the CLOB accepts, in shares, not USDC), with observed_at. Every figure is Polymarket's, never derived. It adds 1 to the cost
130
+ - expand (string[], optional): sharp_money adds each row's sharp_money: status (computed, not_computed or unavailable; the first read of a game can be unavailable while its split is built, so retry after a few seconds), trader_count, per-outcome usd and S/A/B wallet counts, and money_as_of, the game page's per-line split. quotes adds each outcome's quote, the figures get_market_snapshot reads, for the whole page in one cache read and on every plan: status (observed; no_orderbook when the provider confirmed the outcome has no book; unavailable when nothing is cached yet, every figure null: the read starts covering the page's open markets, so read again after a few seconds), price (0 to 1, the price Polymarket shows) with price_basis (midpoint when the best bid and ask are at most $0.10 apart, else last_trade) and price_observed_at, best_bid and best_ask with book_observed_at and book_source (clob_stream from the market websocket, clob_rest from a CLOB books read), book_depth_within_2c (bid_usd and ask_usd, the USD resting on each side within 2 cents of the midpoint, price times size, from the whole book; null when no depth is cached for the book), and book_unavailable_reason (null with a book; else cache_miss, cache_unavailable when we could not read the book from the cache (read again), no_orderbook, missing_provider_token_id, or stream_capacity: API reads already hold every live book they may open, so reading again does not help until fewer markets are read). A null figure is one the cache does not hold, but a null best_bid or best_ask beside book_observed_at is a side with no orders. It adds 1 to the cost. trading_terms adds each row's trading_terms from the market's Gamma record, on every plan: status (observed; not_listed when Gamma's market list returns no record for it; unavailable when no read is in hand yet, every figure null: read again after a few seconds), fees_enabled, fee_schedule (rate, exponent, taker_only and rebate_rate, the fraction of taker fees rebated to the resting maker), rewards_min_size (shares), rewards_max_spread (cents from the midpoint), reward_allocations (rewards_amount, rewards_daily_rate, start_date, end_date), seconds_delay (seconds before a newly placed marketable order can match), tick_size and min_order_size_shares (the smallest order the CLOB accepts, in shares, not USDC), with observed_at. Every figure is Polymarket's, never derived. It adds 1 to the cost
131
131
 
132
132
  Returns: data, has_more, next_cursor, event_slug, families and meta. families lists every market type the event holds with its market and active counts, whatever the filters: read it first to choose a sports_market_type. A slug no stored market carries answers 404; an event outside sports and esports answers 404 with reason market_out_of_scope. Carries a price only with expand quotes, and no holder identity: get_game_holders reads the holders of several of these markets in one call.`,
133
133
  inputSchema: z.object({
@@ -165,6 +165,124 @@ Returns: data, has_more, next_cursor, event_slug, families and meta. families li
165
165
  }
166
166
  });
167
167
  }
168
+ // One league's player props across its games (#33097). Mirrors `list_props`
169
+ // in `backend/src/mcp/tools/contract.rs` and `schema.rs`.
170
+ export function registerListProps(server, client) {
171
+ server.registerTool("list_props", {
172
+ title: "List player props",
173
+ description: `Player props across the catalog's games of one league, one row per market: player, stat and line. NFL files props on a game's -player-props and -first-td-scorer child events and NBA on the game event; this reads both, so a caller does not walk list_games and then each game's markets. Each row carries player.name (the provider groupItemTitle before its first ": ", as the event page shows it; null with player_unavailable_reason when the provider stored no title), stat (the provider sportsMarketType), line (null for a yes/no prop such as an anytime touchdown), title, group_item_title, both outcomes with labels and CLOB token ids, status, resolved_at, and the game's game_event_slug, starts_at and competitors. Polymarket does not name a player's team. Rows are ordered by game slug, stat, player, line.
174
+
175
+ Args:
176
+ - league (string, required): league tag as list_games coverage.leagues spells it, for example nfl or nba
177
+ - starts_after / starts_before (string, optional): RFC 3339 kickoff bounds; a game with no published kickoff is excluded whenever either is set
178
+ - player (string, optional): part of player.name, ignoring case and accents (jokic matches Nikola Jokić)
179
+ - stat (string[], optional): provider sportsMarketType values to keep, for example passing_yards or points. Repeat the key or pass an array
180
+ - status (string, optional): active (default), closed, or all
181
+ - max_spread_c (number, optional): keep only props with an outcome whose cached best ask less best bid is at most this many cents (above 0, at most 100, steps of 0.01), from the same books expand=quotes serves. A prop whose book is not cached yet is left out and counted on coverage.rows_without_book; the board reads its league's books behind the response. A cursor never revisits a prop a page passed over, whether its book was wider or not cached yet, so when coverage.rows_without_book is above 0, read from the first page again after a few seconds to judge those props; the board reads books for active props only, so a closed prop, or one whose outcome has no provider token id yet, stays unjudged. When the book cache cannot be read for the first prop a page must judge, the read answers 503 with error.reason read_model_warming and Retry-After, not an empty page that repeats its cursor.
182
+ - min_book_usd_within_2c (number, optional): keep only props with an outcome whose cached book holds at least this many USD on each side within 2 cents of its midpoint (bids at or above the midpoint minus 0.02, asks at or below the midpoint plus 0.02, price times size; a whole number from 1 to 10000000), the measure the market_price_moved webhook filter of the same name uses; expand=quotes serves the sums as book_depth_within_2c. With max_spread_c one outcome must meet both. A prop whose book or depth is not cached yet is left out and counted on coverage.rows_without_book, as for max_spread_c.
183
+ - limit (number, 1-200, default 50)
184
+ - cursor (string, optional): opaque prp_v1_ cursor from next_cursor, sent with the same filters
185
+ - expand (string[], optional): quotes adds a quote to every outcome, the same object list_game_markets returns: the cached display price with its basis and observation time, the cached best bid and ask, and book_depth_within_2c. The board opens no live book: it reads the league's unstreamed books from CLOB behind the response, so a prop with no book yet reads book_unavailable_reason cache_miss (read again in a few seconds), and cache_unavailable when we could not read the book from the cache; book_source names who read the book (clob_stream or clob_rest); its price is fetched behind the response when no cache holds one, so a later read finds it. Adds 1 to the cost
186
+
187
+ Returns: data, has_more, next_cursor, league, as_of (when the game catalog was assembled), coverage and meta. Read coverage.sources_unavailable before trusting a short or empty page: it names each game catalog source (<sport>:<half>, as list_games coverage does) that could carry the league's games and did not answer for this read, and the page can be missing that source's games until a later read. With max_spread_c or min_book_usd_within_2c, coverage.rows_without_book counts the props this page passed over because no book (or, with min_book_usd_within_2c, no depth) was cached yet; it is null without either filter. A page can hold fewer than limit rows, or none, while has_more is true: a read that has not filled its page stops after about 100 ms of prop reads (a player filter that matches few rows) and resumes on the next page, and a child event out of scope is dropped. Follow next_cursor while has_more is true. An unknown league is invalid_query. A known league with no games in the window is an empty page.`,
188
+ inputSchema: z.object({
189
+ league: z.string().trim().min(1)
190
+ .describe("League tag as list_games coverage.leagues spells it, for example nfl or nba"),
191
+ starts_after: z.string().optional()
192
+ .describe("RFC 3339 kickoff bound. A game with no published kickoff is excluded whenever either bound is set"),
193
+ starts_before: z.string().optional()
194
+ .describe("RFC 3339 kickoff bound, inclusive"),
195
+ player: z.string().min(1).max(80).optional()
196
+ .describe("Part of player.name, ignoring case and accents: jokic matches Nikola Jokić"),
197
+ stat: z.array(z.string().min(1)).optional()
198
+ .describe("Provider sportsMarketType values to keep, for example passing_yards or points"),
199
+ status: z.enum(["active", "closed", "all"]).default("active")
200
+ .describe("active (default), closed, or all"),
201
+ max_spread_c: z.number().gt(0).max(100).multipleOf(0.01).optional()
202
+ .describe("Keep only props with an outcome whose cached best ask less best bid is at most this many cents, in steps of 0.01; a prop with no cached book yet is left out and counted on coverage.rows_without_book"),
203
+ min_book_usd_within_2c: z.number().int().min(1).max(10000000).optional()
204
+ .describe("Keep only props with an outcome whose cached book holds at least this many USD on each side within 2 cents of its midpoint, a whole number from 1 to 10000000; with max_spread_c one outcome must meet both; a prop with no cached book or depth yet is left out and counted on coverage.rows_without_book"),
205
+ limit: z.number().int().min(1).max(200).default(50)
206
+ .describe("Page size (1-200, default 50)"),
207
+ cursor: z.string().optional()
208
+ .describe("Opaque prp_v1_ cursor from next_cursor, used with the same filters"),
209
+ expand: z.array(z.enum(["quotes"])).optional()
210
+ .describe("quotes adds every outcome's cached quote, as on list_game_markets; a prop with no book yet reads cache_miss while the board reads its league's books from CLOB behind the response"),
211
+ }),
212
+ annotations: readAnnotations,
213
+ }, async ({ stat, expand, ...query }, ctx) => {
214
+ try {
215
+ // `stat` and `expand` repeat their key, the spelling the route reads
216
+ // for several values.
217
+ const repeated = {};
218
+ if (stat !== undefined && stat.length > 0)
219
+ repeated["stat"] = [...stat];
220
+ if (expand !== undefined && expand.length > 0)
221
+ repeated["expand"] = [...new Set(expand)];
222
+ const response = await client.request("/api/v1/props", query, Object.keys(repeated).length > 0 ? repeated : undefined, { signal: ctx.mcpReq.signal });
223
+ // Spread explicitly: `league`, `as_of` and `coverage` are page-level
224
+ // keys outside the standard list envelope, and `coverage` is what
225
+ // tells a short page from a source that did not answer.
226
+ return ok({
227
+ data: response.data,
228
+ has_more: response.has_more,
229
+ next_cursor: response.next_cursor,
230
+ ...(response.league === undefined ? {} : { league: response.league }),
231
+ ...(response.as_of === undefined ? {} : { as_of: response.as_of }),
232
+ ...(response.coverage === undefined ? {} : { coverage: response.coverage }),
233
+ ...(response.meta === undefined ? {} : { meta: response.meta }),
234
+ });
235
+ }
236
+ catch (error) {
237
+ return fail(error);
238
+ }
239
+ });
240
+ }
241
+ export function registerListSettledMarkets(server, client) {
242
+ server.registerTool("list_settled_markets", {
243
+ title: "List settled markets",
244
+ description: `Game markets Polymarket settled, as 0xinsider recorded them, oldest first: one row per market per settled state, the same object the market_settled webhook delivers as data. Use it to catch up on settlements after downtime, or as a pull alternative to the webhook: keep next_cursor and call again with it. Each row carries condition_id, settlement_id (one per market per settled state), event_slug, game_id, league, sports_market_type, outcomes (labels at their outcome index), copy_of_event_slug (always null here: a polyv2 copy of a game whose original has a moneyline is left out, as the webhook leaves it out of a league or type filter) and settlement: status observed, oracle_status resolved, settled true, payouts (micro-USDC per share per outcome index), result (outcome, or split for a 50-50), winning_outcome_index, was_disputed, resolved_at (null on a resolved UMA question row, which carries none), oracle_updated_at (Polymarket's last_update_timestamp, its latest lifecycle change, never a resolution time; on such a row, when UMA's answer settled the question), expected_settlement_time, settlement_time_basis and observed_at, when 0xinsider first saw this state. A market can appear twice: once as a question row without payouts, then again with them. Unlike the webhook, a state first recorded more than 6 hours after its market resolved is listed, and so is a state naming the winner an earlier state of its market named (Polymarket's payouts row after the ConditionalTokens payout). Every plan.
245
+
246
+ Args:
247
+ - since (string, required without cursor): RFC 3339 time; rows whose settlement.observed_at is at or after it
248
+ - sports_market_type (string, optional): comma-separated provider market types, case-insensitive (moneyline, spreads, totals, a prop type). Default moneyline; * keeps every type, including markets with no stored type
249
+ - league (string, optional): comma-separated leagues as the rows' league reports them, for example nba,epl; pga is PGA Tour golf
250
+ - limit (number, 1-100, default 20)
251
+ - cursor (string, optional): opaque stl_v1_ cursor from next_cursor. It replaces since and keeps the filters it was issued for; filters sent with it must match them
252
+
253
+ Returns: data, has_more, next_cursor, complete_through and meta. complete_through trails now by two minutes: rows observed at or before it are served, so a row is never passed before it is recorded. has_more true means more rows up to complete_through remain: call again with next_cursor now. has_more false means the walk reached complete_through: keep next_cursor and call again later for what is recorded after it. next_cursor is always present. A page can hold fewer than limit rows, or none, while has_more is true: a read that has not filled its page stops after about 120 ms of scanning and resumes on the next page. A 503 read_model_warming means the first read did not answer in time: retry after Retry-After.`,
254
+ inputSchema: z.object({
255
+ since: z.string().optional()
256
+ .describe("RFC 3339 time, required without cursor: rows whose settlement.observed_at is at or after it"),
257
+ sports_market_type: z.string().optional()
258
+ .describe("Comma-separated provider market types, case-insensitive: moneyline, spreads, totals, a prop type. Omitted: moneyline, or the cursor's filter; * keeps every type"),
259
+ league: z.string().optional()
260
+ .describe("Comma-separated leagues as the rows' league reports them, for example nba,epl; pga is PGA Tour golf"),
261
+ limit: z.number().int().min(1).max(100).default(20)
262
+ .describe("Max results (1-100, default 20)"),
263
+ cursor: z.string().optional()
264
+ .describe("Opaque stl_v1_ cursor from next_cursor; it replaces since and keeps the filters it was issued for"),
265
+ }),
266
+ annotations: readAnnotations,
267
+ }, async (query, ctx) => {
268
+ try {
269
+ const response = await client.request("/api/v1/markets/settled", query, undefined, { signal: ctx.mcpReq.signal });
270
+ // Spread explicitly: `complete_through` is a page-level key outside
271
+ // the standard list envelope, and it says how far a page with
272
+ // has_more false is complete.
273
+ return ok({
274
+ data: response.data,
275
+ has_more: response.has_more,
276
+ next_cursor: response.next_cursor,
277
+ ...(response.complete_through === undefined ? {} : { complete_through: response.complete_through }),
278
+ ...(response.meta === undefined ? {} : { meta: response.meta }),
279
+ });
280
+ }
281
+ catch (error) {
282
+ return fail(error);
283
+ }
284
+ });
285
+ }
168
286
  export function registerGetGameSharpMoney(server, client) {
169
287
  server.registerTool("get_game_sharp_money", {
170
288
  title: "Get game sharp money",
@@ -173,7 +291,7 @@ export function registerGetGameSharpMoney(server, client) {
173
291
  Args:
174
292
  - event_slug (string, required): the game's event slug, for example nba-bos-orl-2026-11-01. Matched case-insensitively
175
293
 
176
- Returns: data with event_slug, status, lifecycle, verdict, allocation, total_usd, unallocated_usd, trader_count, holders_partial, outcomes[] (side, label, usd, pct, is_leader, wallets.s/a/b), computed_at and money_as_of, plus meta. Every aggregate field is null unless status is computed; null means unknown, never zero. verdict.kind is no_sharp_money, all_on, split, leans (label, pct), leans_over_price (label, divergence_pts: how many probability points the money share sits above the price), no_clear_lean, unavailable (money exists but cannot be attributed) or withheld (the money is published but no directional claim is supported). When allocation is degraded, outcomes sum to total_usd minus unallocated_usd and carry no pct or leader. holders_partial true means a market's holder list was a capped page, so counts and dollars cover part of the holders. A settled game returns its recap with lifecycle settled. A game whose aggregate is still computing answers 503 read_model_warming with Retry-After; read again then. A slug with no sports market answers 404. Pro and Max. Descriptive analytics, not an order instruction.`,
294
+ Returns: data with event_slug, status, lifecycle, verdict, allocation, total_usd, unallocated_usd, trader_count, holders_partial, outcomes[] (side, label, usd, pct, is_leader, wallets.s/a/b; side is the provider's own home/away designation of the team, or draw, and null when the provider designates neither), computed_at and money_as_of, plus meta. Every aggregate field is null unless status is computed; null means unknown, never zero. verdict.kind is no_sharp_money, all_on, split, leans (label, pct), leans_over_price (label, divergence_pts: how many probability points the money share sits above the price), no_clear_lean, unavailable (money exists but cannot be attributed) or withheld (the money is published but no directional claim is supported). When allocation is degraded, outcomes sum to total_usd minus unallocated_usd and carry no pct or leader. holders_partial true means a market's holder list was a capped page, so counts and dollars cover part of the holders. A settled game returns its recap with lifecycle settled. A game whose aggregate is still computing answers 503 read_model_warming with Retry-After; read again then. A slug with no sports market answers 404. Pro and Max. Descriptive analytics, not an order instruction.`,
177
295
  inputSchema: z.object({
178
296
  event_slug: z.string().trim().min(1)
179
297
  .describe("The game's event slug, for example nba-bos-orl-2026-11-01; matched case-insensitively"),
@@ -1 +1 @@
1
- {"version":3,"file":"games.js","sourceRoot":"","sources":["../../src/tools/games.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,0EAA0E;AAC1E,sEAAsE;AACtE,EAAE;AACF,0EAA0E;AAC1E,2EAA2E;AAC3E,sDAAsD;AAGtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE7D,MAAM,eAAe,GAAG;IACtB,YAAY,EAAE,IAAI;IAClB,eAAe,EAAE,KAAK;IACtB,cAAc,EAAE,IAAI;IACpB,aAAa,EAAE,KAAK;CACZ,CAAC;AAEX,MAAM,UAAU,iBAAiB,CAAC,MAAiB,EAAE,MAAiB;IACpE,MAAM,CAAC,YAAY,CACjB,YAAY,EACZ;QACE,KAAK,EAAE,oBAAoB;QAC3B,WAAW,EAAE;;;;;;;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,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -38,7 +38,7 @@ export function buildPositionTimelineRequest(args) {
38
38
  export function registerGetPositionTimeline(server, client) {
39
39
  server.registerTool("get_position_timeline", {
40
40
  title: "Get Position Timeline",
41
- description: `Get stored Polymarket fills available for one tracked trader in one market, newest first, with server-computed running_amount and running_avg_price. The REST identity accepts a 0x wallet, username, trd_-prefixed trader id, or bare integer traders.id with precedence wallet, trd_, integer, then username. Only warm-tier traders, the wallets we sync most often, are tracked.
41
+ description: `Get every stored Polymarket fill for one tracked trader in one market, at any date, newest first, with server-computed running_amount and running_avg_price over all earlier fills. tx_hash is null for a fill with no large-trade alert. A pair with more than 20,000 fills before the page returns fill_history_too_large. The REST identity accepts a 0x wallet, username, trd_-prefixed trader id, or bare integer traders.id with precedence wallet, trd_, integer, then username. Only warm-tier traders, the wallets we sync most often, are tracked.
42
42
 
43
43
  Args:
44
44
  - condition_id (string, required): Market condition ID
@@ -76,7 +76,7 @@ Args:
76
76
  - condition_id (string, optional): One market's large trades, by exact raw provider condition_id; not with event_slug or since
77
77
  - event_slug (string, optional): Every market of one game (moneyline, spreads, totals and props), the markets get_game_trades reads; recent order only, not with condition_id or since; an unknown slug is not_found
78
78
 
79
- Returns: List of large trades with trader info, market context, size, side, price, current review_score (signal_score is its deprecated twin, same value, until its 2027-02-01 sunset) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin until its 2027-02-01 sunset; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label. Each trade carries clv, its closing line value against the market's stored close (get_market_close): status measured, in_play, pending or unavailable, and when measured clv_cents, positive when the trade beat the close (buy: close minus price; sell: price minus close; cents per share, gross of fees). The page carries data_quality beside data: status, as_of (the oldest clock the page rests on) and field_groups. fresh and stale both mean tracked and clocked; stale means as_of is older than max_age_s, the refresh budget of the group writer. Neither is a tolerance: compare as_of with your own. unknown means this read cannot date that group, never that it is recent.`;
79
+ Returns: List of large trades with trader info, market context, size, side, price, current review_score (signal_score is its deprecated twin, same value, until its 2027-02-01 sunset) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin until its 2027-02-01 sunset; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label. Each trade carries clv, its closing line value against the market's stored close (get_market_close): status measured, in_play, pending or unavailable, and when measured clv_cents, positive when the trade beat the close (buy: close minus price; sell: price minus close; cents per share, gross of fees). taker_fee_cents is the fee the fill paid as taker, cents per share, from the exchange's on-chain record of the fill (null until that record is decoded, about a minute after the trade, and before 2026-08-16); clv_after_fees_cents is clv_cents minus it, set when both are. The page carries data_quality beside data: status, as_of (the oldest clock the page rests on) and field_groups. fresh and stale both mean tracked and clocked; stale means as_of is older than max_age_s, the refresh budget of the group writer. Neither is a tolerance: compare as_of with your own. unknown means this read cannot date that group, never that it is recent.`;
80
80
  const WHALE_TRADES_DESCRIPTION = `Deprecated alias of get_large_trades (#16304), kept live until its 2027-02-01 sunset (#29351), then removed; it calls the deprecated /api/v1/whale-trades path. Get recent large trades from graded prediction market traders. Each trade includes a 0-1 review score, persisted suspicion facts, trader grade, and market context. Cursor-paginated, newest first.
81
81
 
82
82
  Args:
@@ -93,7 +93,7 @@ Args:
93
93
  - condition_id (string, optional): One market's large trades, by exact raw provider condition_id; not with event_slug or since
94
94
  - event_slug (string, optional): Every market of one game (moneyline, spreads, totals and props), the markets get_game_trades reads; recent order only, not with condition_id or since; an unknown slug is not_found
95
95
 
96
- Returns: List of whale trades with trader info, market context, size, side, price, current review_score (signal_score is its deprecated twin, same value, until its 2027-02-01 sunset) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin until its 2027-02-01 sunset; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label. Each trade carries clv, its closing line value against the market's stored close (get_market_close): status measured, in_play, pending or unavailable, and when measured clv_cents, positive when the trade beat the close (buy: close minus price; sell: price minus close; cents per share, gross of fees). The page carries data_quality beside data: status, as_of (the oldest clock the page rests on) and field_groups. fresh and stale both mean tracked and clocked; stale means as_of is older than max_age_s, the refresh budget of the group writer. Neither is a tolerance: compare as_of with your own. unknown means this read cannot date that group, never that it is recent.`;
96
+ Returns: List of whale trades with trader info, market context, size, side, price, current review_score (signal_score is its deprecated twin, same value, until its 2027-02-01 sunset) and trader grade, point-in-time recorded_review_score (recorded_signal_score is its deprecated twin until its 2027-02-01 sunset; null before 2026-08-03) and trader grade_at_trade with grade_at_trade_status (unknown before 2026-09-19), optional suspicion_score, and optional suspicion_track. A null suspicion track means the persisted legacy row has no track label. Each trade carries clv, its closing line value against the market's stored close (get_market_close): status measured, in_play, pending or unavailable, and when measured clv_cents, positive when the trade beat the close (buy: close minus price; sell: price minus close; cents per share, gross of fees). taker_fee_cents is the fee the fill paid as taker, cents per share, from the exchange's on-chain record of the fill (null until that record is decoded, about a minute after the trade, and before 2026-08-16); clv_after_fees_cents is clv_cents minus it, set when both are. The page carries data_quality beside data: status, as_of (the oldest clock the page rests on) and field_groups. fresh and stale both mean tracked and clocked; stale means as_of is older than max_age_s, the refresh budget of the group writer. Neither is a tolerance: compare as_of with your own. unknown means this read cannot date that group, never that it is recent.`;
97
97
  export function registerGetLargeTrades(server, client) {
98
98
  registerTradeList(server, client, {
99
99
  name: "get_large_trades",
@@ -1 +1 @@
1
- {"version":3,"file":"get-whale-trades.js","sourceRoot":"","sources":["../../src/tools/get-whale-trades.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEnD,SAAS,iBAAiB,CACxB,MAAiB,EACjB,MAAiB,EACjB,IAAwE;IAExE,MAAM,CAAC,Y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CAAC,MAAM,CAAC,CAAC;QACpB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC;AAED,MAAM,wBAAwB,GAAG;;;;;;;;;;;;;;;;i9CAgBg7C,CAAC;AAEl9C,MAAM,wBAAwB,GAAG;;;;;;;;;;;;;;;;i9CAgBg7C,CAAC;AAEl9C,MAAM,UAAU,sBAAsB,CAAC,MAAiB,EAAE,MAAiB;IACzE,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE;QAChC,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EAAE,wBAAwB;KACtC,CAAC,CAAC;AACL,CAAC;AAED,wDAAwD;AACxD,MAAM,UAAU,sBAAsB,CAAC,MAAiB,EAAE,MAAiB;IACzE,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE;QAChC,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EAAE,wBAAwB;KACtC,CAAC,CAAC;AACL,CAAC"}
@@ -5,4 +5,5 @@ export declare function registerGetMarketTopHolders(server: McpServer, client: A
5
5
  export declare function registerGetMarketCandles(server: McpServer, client: ApiClient): void;
6
6
  export declare function registerGetMarketWalletsInOut(server: McpServer, client: ApiClient): void;
7
7
  export declare function registerGetMarketClose(server: McpServer, client: ApiClient): void;
8
+ export declare function registerGetMarketTrades(server: McpServer, client: ApiClient): void;
8
9
  //# sourceMappingURL=market-reads.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"market-reads.d.ts","sourceRoot":"","sources":["../../src/tools/market-reads.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAkBzC,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAmDnF;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CA8BtF;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAoCnF;AAID,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CA8BxF;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CA2BjF"}
1
+ {"version":3,"file":"market-reads.d.ts","sourceRoot":"","sources":["../../src/tools/market-reads.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAkBzC,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAmDnF;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CA8BtF;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAoCnF;AAID,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CA8BxF;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CA2BjF;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAiDlF"}
@@ -174,4 +174,49 @@ Returns: condition_id, status, unavailable_reason, game_start_time, close_anchor
174
174
  }
175
175
  });
176
176
  }
177
+ export function registerGetMarketTrades(server, client) {
178
+ server.registerTool("get_market_trades", {
179
+ title: "List a market's trades",
180
+ description: `One market's taker fills of 100 USD or more, newest first, from 0xinsider's own record of the exchange's on-chain fills: each fill once, keyed by its transaction hash and log index. Walk a window with from and to and page with next_cursor. Fills under 100 USD are not stored. coverage.recorded_from is where the record starts, the later of when recording began and 00:00 UTC on the day 365 days back, so an empty window before it means outside the record, not no trading; coverage.complete_through is how far the record is complete, a few minutes behind now, and a first page serves no fill after it. For large trades with grades and review scores, use get_large_trades_history with condition_id.
181
+
182
+ Args:
183
+ - condition_id (string, required): Raw provider condition_id or the mkt_-prefixed market id
184
+ - from (string, optional): Inclusive RFC3339 lower bound on traded_at; omitted, the walk runs to the start of the record
185
+ - to (string, optional): Exclusive RFC3339 upper bound on traded_at; a first page ends at the earlier of to and coverage.complete_through
186
+ - limit (number, 1-500, default 100): Fills per page
187
+ - cursor (string, optional): next_cursor from the previous page, bound to the same market, from and to
188
+
189
+ Returns: data (each fill's id, traded_at, side BUY or SELL for the taker, outcome, outcome_index, token_id, price, shares, size_usd, taker, transaction_hash and log_index), has_more, next_cursor, condition_id, coverage (min_size_usd, recorded_from, complete_through, retention_days) and meta. A 503 read_model_warming means retry after Retry-After; an unknown market answers not_found.`,
190
+ inputSchema: z.object({
191
+ condition_id: marketConditionId,
192
+ from: z.iso.datetime({ offset: true }).optional()
193
+ .describe("Inclusive RFC3339 lower bound on traded_at; omitted, the walk runs to the start of the record"),
194
+ to: z.iso.datetime({ offset: true }).optional()
195
+ .describe("Exclusive RFC3339 upper bound on traded_at; a first page ends at the earlier of to and coverage.complete_through"),
196
+ limit: z.number().int().min(1).max(500).default(100)
197
+ .describe("Fills per page (1-500, default 100)"),
198
+ cursor: z.string().optional()
199
+ .describe("next_cursor from the previous page; it is bound to the same market, from and to"),
200
+ }),
201
+ annotations: readAnnotations,
202
+ }, async ({ condition_id, ...query }, ctx) => {
203
+ try {
204
+ const response = await client.request(marketPath(condition_id, "trades"), query, undefined, { signal: ctx.mcpReq.signal });
205
+ // `ListMetadata::MarketTrades` in `response.rs`: the page and its
206
+ // cursor pair, with the market and the store's coverage beside it.
207
+ // An absent field stays absent; none is invented.
208
+ return ok({
209
+ data: response.data,
210
+ has_more: response.has_more ?? false,
211
+ next_cursor: response.next_cursor ?? null,
212
+ ...(response.condition_id === undefined ? {} : { condition_id: response.condition_id }),
213
+ ...(response.coverage === undefined ? {} : { coverage: response.coverage }),
214
+ ...(response.meta === undefined ? {} : { meta: response.meta }),
215
+ });
216
+ }
217
+ catch (error) {
218
+ return fail(error);
219
+ }
220
+ });
221
+ }
177
222
  //# sourceMappingURL=market-reads.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"market-reads.js","sourceRoot":"","sources":["../../src/tools/market-reads.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,oEAAoE;AACpE,EAAE;AACF,0EAA0E;AAC1E,mFAAmF;AACnF,4CAA4C;AAG5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,eAAe,GAAG;IACtB,YAAY,EAAE,IAAI;IAClB,eAAe,EAAE,KAAK;IACtB,cAAc,EAAE,IAAI;IACpB,aAAa,EAAE,KAAK;CACZ,CAAC;AAEX,qDAAqD;AACrD,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KAC/C,QAAQ,CAAC,0DAA0D,CAAC,CAAC;AAExE,SAAS,UAAU,CAAC,WAAmB,EAAE,MAAc;IACrD,OAAO,kBAAkB,kBAAkB,CAAC,WAAW,CAAC,IAAI,MAAM,EAAE,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,MAAiB,EAAE,MAAiB;IAC3E,MAAM,CAAC,YAAY,CACjB,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E;QACxC,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CACnC,UAAU,CAAC,YAAY,EAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,CACpF,CAAC;YACF,kEAAkE;YAClE,mEAAmE;YACnE,kDAAkD;YAClD,OAAO,EAAE,CAAC;gBACR,IAAI,EAAE,QAAQ,CAAC,IAAI;gBACnB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,IAAI,KAAK;gBACpC,WAAW,EAAE,QAAQ,CAAC,WAAW,IAAI,IAAI;gBACzC,GAAG,CAAC,QAAQ,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,QAAQ,CAAC,YAAY,EAAE,CAAC;gBACvF,GAAG,CAAC,QAAQ,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC;gBAC3E,GAAG,CAAC,QAAQ,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;aAChE,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -23,7 +23,7 @@ const PICK_VIEWS = ["summary", "full"];
23
23
  /** `GET /api/v1/pick-of-the-day/stats` sections, in the body's order (backend `StatsSection::ALL`). */
24
24
  const PICK_STATS_SECTIONS = [
25
25
  "hit_rate", "series", "market_expectations", "outcome_stats", "days",
26
- "categories", "sports", "tiers", "selections", "months", "price_bands", "market_types",
26
+ "categories", "sports", "tiers", "months", "price_bands", "market_types",
27
27
  "total_sides", "streaks", "records", "voids",
28
28
  ];
29
29
  export function registerGetPickOfTheDay(server, client) {
@@ -121,15 +121,15 @@ Returns: picks[] newest first with outcome and CLV fields, the aggregate record
121
121
  export function registerGetPickOfTheDayStats(server, client) {
122
122
  server.registerTool("get_pick_of_the_day_stats", {
123
123
  title: "Get Pick of the Day Stats",
124
- description: `Get the Pick of the Day track-record breakdown the stats page shows, computed from the same rows the archive publishes: the rolling hit rate, the win rate the market expected at publication, flat-stake outcome stats (drawdown, rolling form, profit factor, concentration), and buckets by day, sport, league or category label, access group (Free, Pro, Max), how the pick was chosen (the algorithm alone, or an operator before 2026-10-17), month, entry-price band, market type and totals side, plus streaks, records and every void pick. Withdrawn picks are outside every figure, as in the archive.
124
+ description: `Get the Pick of the Day track-record breakdown the stats page shows, computed from the same rows the archive publishes: the rolling hit rate, the win rate the market expected at publication, flat-stake outcome stats (drawdown, rolling form, profit factor, concentration), and buckets by day, sport, league or category label, access group (Free, Pro, Max), month, entry-price band, market type and totals side, plus streaks, records and every void pick. Withdrawn picks are outside every figure, as in the archive.
125
125
 
126
126
  The default view=summary returns every section except the five that grow with the record: series (one point per decided pick), days, categories, months and voids (one row per void pick). Name them in sections to read them; sections returns exactly the sections named and overrides view. view=full returns every section (over 150,000 characters in November 2026). hit_rate never carries series in summary or sections; series is its own top-level section.
127
127
 
128
128
  Args:
129
129
  - view (string, optional): summary (default) or full
130
- - sections (string[], optional): hit_rate, series, market_expectations, outcome_stats, days, categories, sports, tiers, selections, months, price_bands, market_types, total_sides, streaks, records, voids; an unknown name is an error
130
+ - sections (string[], optional): hit_rate, series, market_expectations, outcome_stats, days, categories, sports, tiers, months, price_bands, market_types, total_sides, streaks, records, voids; an unknown name is an error
131
131
 
132
- Returns: view, sections and the selected sections of hit_rate, series, market_expectations, outcome_stats, days[], categories[], sports[], tiers[], selections[], months[], price_bands[], market_types[], total_sides[], streaks, records and voids[]; view=full returns the whole object without view or sections.`,
132
+ Returns: view, sections and the selected sections of hit_rate, series, market_expectations, outcome_stats, days[], categories[], sports[], tiers[], months[], price_bands[], market_types[], total_sides[], streaks, records and voids[]; view=full returns the whole object without view or sections.`,
133
133
  inputSchema: z.object({
134
134
  view: z
135
135
  .enum(PICK_VIEWS)
@@ -157,7 +157,7 @@ Returns: view, sections and the selected sections of hit_rate, series, market_ex
157
157
  export function registerGetPickOfTheDayLedgerEntry(server, client) {
158
158
  server.registerTool("get_pick_of_the_day_ledger_entry", {
159
159
  title: "Get Pick of the Day Proof",
160
- description: "Read one published pick's sealed, opened or uncommitted ledger entry by its stable decimal-string pick_id. commitment_version explicitly selects version 1 legacy proofs or version 2 rank-free proofs. Never infer a proof format from dates or reorder canonical bytes. Pending proofs withhold the backed side and nonce. selected_by states how the pick was chosen (auto or manual), outside the hash. This tool requires the usual authenticated MCP tools/call transport; the corresponding REST read is public.",
160
+ description: "Read one published pick's sealed, opened or uncommitted ledger entry by its stable decimal-string pick_id. commitment_version explicitly selects version 1 legacy proofs or version 2 rank-free proofs. Never infer a proof format from dates or reorder canonical bytes. Pending proofs withhold the backed side and nonce. This tool requires the usual authenticated MCP tools/call transport; the corresponding REST read is public.",
161
161
  inputSchema: z.object({
162
162
  pick_id: z.string().regex(/^[1-9][0-9]*$/).describe("Stable positive database row id as decimal text"),
163
163
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"pick-of-the-day.js","sourceRoot":"","sources":["../../src/tools/pick-of-the-day.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEjD,8EAA8E;AAC9E,6EAA6E;AAC7E,8EAA8E;AAC9E,2EAA2E;AAC3E,uEAAuE;AACvE,4EAA4E;AAC5E,6EAA6E;AAC7E,mCAAmC;AACnC,EAAE;AACF,kFAAkF;AAClF,gFAAgF;AAChF,+DAA+D;AAE/D,MA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