Skip to main content
Glama

Most played in a period

music_history_top
Read-onlyIdempotent

Retrieve your most played tracks, artists, or albums from the Music play log within a date range, optionally filtered by words, to answer listening history questions.

Instructions

From the Music play log: most played tracks, artists or albums between since and until (a bare until date includes that day; default the last 30 days), optionally filtered by query (track, artist or album words). Answers "what did I listen to yesterday" or "most played artists in September". Read coverage: plays before logging started or during gaps are unknown. 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_history_top"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows (default 25).
queryNoOnly tracks whose name, artist or album contain these words.
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.
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.
group_byNoDefault track.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the read-only, idempotent annotations, the description discloses important behavioral caveats: plays before logging started or during gaps are unknown, and large results are returned in parts. It also clarifies date inclusivity and the default period, which materially helps correct invocation.

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

Conciseness4/5

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

The description is front-loaded and dense with useful information, with no obvious filler. It is somewhat parenthetical and run-on in places, but every sentence contributes to scope, date behavior, examples, or caveats.

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

Completeness4/5

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

For a six-parameter read-only query tool with no output schema, the description covers the important context: scope, default period, date inclusivity, filtering, grouping, paging, and logging coverage gaps. It could say a bit more about result shape or ordering, but it is largely complete.

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 already 100%, so the schema carries most parameter documentation. The description adds meaningful semantics beyond it: bare until dates include that day, the default period is the last 30 days, and query matches track, artist, or album words.

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

Purpose4/5

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

The description clearly states a specific query: most played tracks, artists, or albums from the Music play log within a date range. It does not explicitly name sibling alternatives such as music_top or music_played, so the boundary is clear from scope but not reinforced by comparison.

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

Usage Guidelines4/5

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

It gives practical usage context, including example questions like "what did I listen to yesterday" and "most played artists in September," and explains the default last-30-days window. It stops short of explicitly saying when to choose this over similar siblings or when not to use it.

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