get_battle_ranking
Rank battle participants by damage or points for players, countries, or military units on a chosen side, returning capped rows and a truncated flag when more results exist.
Instructions
Get a battle leaderboard by damage or points for players, countries, or military units on one side. The upstream ranking is unbounded, so results are capped locally and truncated says whether more rows exist. This is a battle ranking, not the deferred global wealth ranking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | Which side of the battle to rank. | merged |
| limit | No | Maximum rows to return (1-10). | |
| metric | No | Ranking metric. | damage |
| battle_id | Yes | Opaque WarEra identifier. | |
| entity_type | No | Which entity type the ranking lists. | user |
| player_context | No | Optional per-request WarEra credentials: an object containing api_key or jwt. Never use a project-wide or default credential. |