Skip to main content
Glama

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

NameRequiredDescriptionDefault
userNoLast.fm username. Omit to use the configured default user.
viewYesWhich history view to fetch: recent_tracks for chronological plays, top_artists or top_tracks for aggregated listening stats over a time period.
limitNoNumber of results to return (1-50). Default 20.
periodNoTime period for top_artists and top_tracks. Ignored for recent_tracks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully explains the three response shapes and that aggregated views are 'by play count over a time period', but says nothing about authentication needs, private-profile handling, rate limits, or pagination/truncation behavior at the 50-item ceiling.

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: purpose, then view taxonomy, then recommended ordering. Front-loaded and every clause carries usable information with no filler.

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 four-parameter read tool with a fully described schema and no output schema, the description explains the possible result shapes well enough to call it confidently. The only meaningful omission is operational context such as credentials or limits on private users.

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

Parameters3/5

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

Schema coverage is 100%, so the enum meanings, default limit, and the 'ignored for recent_tracks' behavior are already documented in the schema. The description largely restates the same view semantics, adding little interpretation beyond the structured fields; baseline 3 applies.

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 verb and resource ('Retrieves a Last.fm user's listening history') and then enumerates the three concrete views it can return (recent_tracks, top_artists, top_tracks). This lets an agent distinguish it from get_recommendations, which the description explicitly positions as the downstream step.

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?

'Use this to understand what music someone has been playing' plus 'Call this first to understand a user's taste before making recommendations' gives clear when-to-use and sequencing guidance. There is no explicit when-not or named alternative to avoid, so it falls short of a 5.

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