Skip to main content
Glama

Plays over time

music_history_timeline
Read-onlyIdempotent

Aggregates Music play counts per day, week, or month across a date range, optionally filtered by track, artist, or album. Use it to chart listening history and spot trends.

Instructions

From the Music play log: plays per day, week (starting Monday) or month between since and until, optionally for one track, artist or album (query). Periods outside the logged span have plays: null (unknown), not 0. 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_timeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
bucketNoDefault 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already carry readOnly/idempotent/non-destructive, and the description adds genuinely non-obvious behavior: periods outside the logged span return plays: null, not 0, and large results arrive in parts via paging and cursor. Week-start-Monday is also disclosed. It does not mention timezone handling for since/until beyond 'local date-time', which keeps it from a 5.

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?

Three tight sentences with the data source front-loaded, then the range/filter semantics, then the null and paging caveats. No filler, though the parenthetical '(see paging and cursor)' is slightly circular since cursor is already a parameter.

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?

With no output schema, the description carries the return-value burden and does so partially: it explains the null-vs-0 convention and the paged delivery, but not the shape of each bucket entry (e.g., timestamp plus count). Given five optional parameters and a simple aggregation, it is close to 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 100%, so the baseline is 3, but the description adds real meaning: bucket week starts on Monday, query matches across track/artist/album, and out-of-range periods yield null plays. It also frames since/until as a range bound, which the schema only shows by example.

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?

States a concrete verb+resource: aggregated plays per day/week/month from the Music play log, between since and until, optionally filtered by query. That distinguishes it in substance from raw-play tools like music_played, though it never names a sibling to route against explicitly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: aggregation over time ranges with optional text filtering. There is no explicit 'use this when you want counts over time; use X for raw events' guidance and no stated prerequisites or limits on how large a span may be requested.

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