get_my_rank
Find your 1-based position in a study category leaderboard by passing category and country IDs, returning your rank or None if unavailable.
Instructions
Return your position in a category leaderboard.
:param category_id: Category ID, as returned by ``get_profile``.
:type category_id: int
:param country_id: Country ID, as returned by ``get_profile``.
:type country_id: int
:returns: Your 1-based rank as ``int``, or ``None`` when no rank is
available for the category.
:rtype: int | None
:raises RuntimeError: If YPT credentials are not configured.
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": {
"category_id": "<category_id>",
"country_id": "<country_id>"
},
"name": "get_my_rank"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country_id | Yes | ||
| category_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |