Count a play
record_playCount one play of a track and put it at the top of the listener's history. Use it when playback starts; repeating the same idempotency key does not count it twice. Returns ok, or a 404 problem when no track has that id.
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": {
"track_id": "<track_id>"
},
"name": "record_play"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_id | Yes | the track that was played |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes |