Skip to main content
Glama

Recently played

music_played
Read-onlyIdempotent

List Apple Music library tracks by last-played date, newest first, for any period. Filter by since/until dates, set a limit, and page through large results with a cursor.

Instructions

Library tracks by when they were LAST played, newest first, for any period. Music stores only each track's last play date and total play count, so this is not a full play history: a track played twice in the period appears once. For plays per period ("what did I listen to most in September") use music_history_top when the play log is on. Large results come in parts (see paging and cursor).

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": "music_played"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax tracks.
sinceNoDate or local date-time, e.g. 2030-01-31 or 2030-01-31 18:00.
untilNoDate or local date-time, e.g. 2030-01-31 or 2030-01-31 18:00. A bare date includes that day.
cursorNoLeave out at first. When a result has paging.has_more, repeat the call with the same arguments plus cursor set to paging.cursor to get the next part.
open_if_closedNoOpen Music if it is not running (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds the non-obvious data-model caveat that only last-play date and total play count are stored, meaning results are not a play history, plus the fact that large results arrive in parts. It stops short of stating sort tie-breaking or exact result shape, but the essential behavioral traps are disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: what it returns and in what order first, then the data-model limitation, then the routing alternative. Every sentence carries information an agent would otherwise get wrong, and the parenthetical paging pointer is compact rather than redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only list tool with no output schema, the description covers the two things an agent cannot infer: the last-play-only data model and the multi-part paging behavior tied to paging.has_more/paging.cursor. Nothing needed to call it correctly or interpret results is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds real interpretive meaning for since/until by explaining that the window filters on last-play date only and that a track played twice in the period appears once. That changes how an agent should read its own date parameters rather than restating the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (library tracks) with an explicit ordering (by last-played date, newest first) and scope (any period). It also draws a clear boundary against music_history_top, so an agent can distinguish the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit alternative and the condition that selects it: for plays per period use music_history_top when the play log is on. It also names the situation where this tool misleads (repeat plays collapsing to one row), which is exactly the guidance needed to pick correctly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.