Skip to main content
Glama

Polyrank Ranking Builder (custom composite ranking)

polyrank_rank_wallets
Read-onlyIdempotent

Rank every Polymarket wallet with your own composite — exactly what the Ranking Builder runs (POST /v1/rankings/custom). weights: metric id → weight (or {weight, window}); any of the 84 catalog metrics at any window it exists at (polyrank_get_metric_windows), plus copy-engine (sk_score_14d) and entry-timing ids at lifetime. filters: min_trades, min_resolved, min_inband_n_30d (the in-band positions behind inband_return_30d: a sort by engine:inband_return_30d applies 10 unless you set it, 1 = every measured wallet; the floor that ran is in applied_filters), min_volume_usdc, min_realized_pnl(_net_fees), min_win_rate_pct, max_roi_pct, active_within_days/hours, categories, exclude_bonders, skill_gates [{metric,min_pctile,window}], metric_filters [{metric,min,max,window}], copy_engine {sleeve}, timing {sub,bucket,window,min_n}, cluster_policy, copy_placeable, smart_money_tags_any_of, follower_count_max … (the server rejects anything it cannot apply, with the reason). A HISTORY BOARD (an AI Lab history ranking's latest seat) is filters {history_board: {board}} with board one of underdog-specialists | copier-consensus | predictors-early-underdog | sports-closing-line and NO weights: it is ranked by the seat's own order and served as that preset board; only active_within_days, active_within_hours and best_category may narrow it (window_days, score, min_positions, one_per_operator and other keys are not accepted there), plus limit, offset, sort_by, sort_dir, include_breakdown, include_verdict, extra_metrics, extra_engine_metrics, dedupe_clusters. as_of=YYYY-MM-DD ranks the board as it stood that day (lifetime snapshot metrics only — refused with the reason otherwise, never answered live). To reproduce a Builder goal, pass its request from polyrank_list_ranking_templates as request. Needs a signed-in Polyrank account on Pro Trader or higher (https://polyrank.app/pricing).

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

Input Schema

NameRequiredDescriptionDefault
as_ofNoRank the board as it stood on this day (ISO date). Lifetime snapshot metrics only.
limitNoRows (default 100, max 500).
offsetNo
windowNoDefault window for every weight given as a bare number (default lifetime).
explainNoHow many wallets each filter dropped.
filtersNoRanking filters (see description).
requestNoA complete POST /v1/rankings/custom body (e.g. a goal's `request`). When given, the other arguments override its fields.
sort_byNocomposite (default), metric:<id>, pctile:<id>, engine:<id>, timing:<id>, or a board column. engine:inband_return_30d is a mean over few positions for most wallets: it carries a min_inband_n_30d floor (default 10) and projects inband_n_30d beside it.
weightsNometric id → weight, or → {weight, window}. Weights are auto-normalized.
sort_dirNo
na_policyNo
include_rawNoRaw values beside the percentiles (dollars, hours).
extra_metricsNoMore metric columns to project.
dedupe_clustersNoKeep one wallet per wallet-farm cluster.
include_verdictNoThe copy verdict the trader page shows.
include_breakdownNoPer-metric percentile cells per row.
extra_engine_metricsNoCopy-engine columns to project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / sort_by / description
      Previous value: -"composite (default), metric:<id>, pctile:<id>, engine:<id>, timing:<id>, or a board column."New value: +"composite (default), metric:<id>, pctile:<id>, engine:<id>, timing:<id>, or a board column. engine:inband_return_30d is a mean over few positions for most wallets: it carries a min_inband_n_30d floor (default 10) and projects inband_n_30d beside it."
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: discloses the account requirement (signed-in Polyrank on Pro Trader or higher), server-side validation that rejects unapplicable filters with a reason, and the as_of snapshot restriction that refuses rather than answering live. It also reveals hidden defaults (min_inband_n_30d floor of 10) and where the applied floor is reported, which the agent could not infer otherwise.

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

Conciseness3/5

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

Front-loads the core purpose and endpoint, which is good, but the body is one dense run-on paragraph with a sprawling mid-sentence enumeration of filter keys and parenthetical caveats. The information is mostly useful, but scanning and locating a specific rule (e.g. history-board restrictions) is harder than it needs to be.

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?

For a 17-parameter tool with two free-form object parameters and no output schema, the description covers auth, failure modes, board modes, and as_of semantics thoroughly. Gaps remain around the response shape: applied_filters and board columns are mentioned but never described, and pagination behavior beyond limit/offset is left to the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 82%, yet the description adds real meaning: which filter keys exist and what they gate, the {weight, window} shape and auto-normalization, the default window for bare-number weights, and the non-obvious coupled default between engine:inband_return_30d sorting and min_inband_n_30d. It also clarifies that `request` is overridden by other arguments.

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?

States a concrete verb and resource ('Rank every Polymarket wallet with your own composite') and pins it to a documented endpoint (POST /v1/rankings/custom), so the agent knows this builds an ad-hoc custom ranking. It references polyrank_get_metric_windows and polyrank_list_ranking_templates for inputs, but never distinguishes itself from the similarly named polyrank_get_custom_ranking, leaving one sibling ambiguity.

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?

Gives explicit conditional usage: use weights+filters for a custom composite, or filters {history_board: {...}} with NO weights for a preset history board, and pass a goal's `request` to reproduce a Builder template. It also states what is refused (as_of on non-snapshot metrics, keys not accepted on history boards). What it lacks is a plain statement of when to prefer this over polyrank_get_leaderboard for standard ranking.

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.