get_playback_history
Retrieve a Last.fm user's listening history to understand their music taste, showing recent tracks or top artists and tracks for a chosen period.
Instructions
Retrieves a Last.fm user's listening history. Use this to understand what music someone has been playing. Provides three views: recent_tracks (chronological, most recent plays), top_artists or top_tracks (aggregated by play count over a time period). Call this first to understand a user's taste before making recommendations.
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": {
"view": "<view>"
},
"name": "get_playback_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Last.fm username. Omit to use the configured default user. | |
| view | Yes | Which history view to fetch: recent_tracks for chronological plays, top_artists or top_tracks for aggregated listening stats over a time period. | |
| limit | No | Number of results to return (1-50). Default 20. | |
| period | No | Time period for top_artists and top_tracks. Ignored for recent_tracks. |