Skip to main content
Glama

Rank a manager's pools by what they are paying

rank_pools
Read-only

Fee APR over the last 24 hours for each pool this manager is configured with, best first — the Uniswap gateway's figure, or the subgraph's last complete day for a pool the gateway does not list (aprSource). Only the manager's own pools are candidates: a move can target a pool only if the owner fixed it into the set when the manager was created. Pools that could not be scored are listed separately with the reason — a pool missing from the ranking is not a bad pool. gatewayStale / gatewayDataAt say when the gateway's figures are older than they should be.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chainId": "<chainId>",
      "manager": "<manager>"
    },
    "name": "rank_pools"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainIdYesEVM chain id, e.g. 42161 for Arbitrum One
managerYesManager NFT contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description adds substantial context beyond them: the gateway-first / subgraph-fallback data source, the `aprSource` indicator, the fact that unscoreable pools are listed separately with reasons, and the `gatewayStale` / `gatewayDataAt` staleness fields. It also warns that a missing pool is not a bad pool, which prevents a plausible misreading of the output.

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?

The ranking rule and data source are front-loaded, and the three sentences are dense but purposeful. The clause about moves targeting only owner-fixed pools is useful scope context but is slightly tangential to the ranking action, keeping this from a 5.

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?

With no output schema, the description carries the burden of explaining returns, and it does so: ordered scores, `aprSource` provenance, separately listed unscored pools with reasons, and gateway staleness fields. For a read-only ranking tool with two well-documented parameters, nothing essential 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 description coverage is 100%, so `chainId` and `manager` are already documented in the schema. The description adds conceptual meaning to `manager` by tying it to the configured pool set, but it adds no format or constraint detail for either parameter. Per the high-coverage baseline, a 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 description names a specific metric (Fee APR over the last 24 hours), a specific resource (each pool this manager is configured with), and an ordering (best first). It also distinguishes the tool from a generic pool list by stating that only the manager's own configured pools are candidates, which lets an agent separate it from siblings like get_strategy or suggest_move.

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?

The scope constraint ('Only the manager's own pools are candidates') tells the agent when this tool's result set applies, but the description never states when to choose this tool over an alternative or what to do if the manager has no configured pools. Usage is implied by the ranking framing rather than explicitly guided.

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.

Resources