Top songs over a date range
top_tracksRank songs by play count for a chosen date range, folding editions of the same track together. Use it to answer "What were my top songs in July?"
Instructions
Play counts per song between two local dates (inclusive), most played first, with editions of a song (single, album, remaster) folded together. Use this for "my top songs in July" or "most played song last year". Defaults to the last 30 days. Ranges up to 3,660 days.
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": "top_tracks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD; default today | |
| from | No | First day, YYYY-MM-DD; default 29 days ago | |
| limit | No | Default 20 |