Rank Agent
rank_agentRank Stellar on-chain agents by declared-evidence policy using natural language query or explicit agent IDs, with per-axis breakdown and verification.
Instructions
Rank an explicit agent set or a query's candidates using the deterministic declared-evidence policy: normalized indexed average × fixed evidence strength (0.4 capped volume + 0.6 breadth). Owner-declared capability fields add zero. On-chain checks are evidence metadata and never inflate rank. Every row carries a full per-axis breakdown and a declared-vs-verified verification block. Provide EITHER agentIds OR query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No | Natural-language query whose candidates are ranked. XOR with agentIds. | |
| sortBy | No | relevance | |
| verify | No | Attempt the bounded Reputation-contract probe (default on; current probe verifies no reputation fields). | |
| weights | No | Deprecated and rejected when supplied. The v1 policy fixes evidence weights at volume=0.4 and breadth=0.6. | |
| agentIds | No | Explicit agent ids to rank (maximum 50 on this transport). Provide EITHER agentIds OR query, not both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| agents | Yes | ||
| coverage | No | ||
| rankVersion | Yes | ||
| evidenceWeights | Yes |