Skip to main content
Glama

get_recently_played

Retrieve a user's recently played tracks with timestamps. Supports filtering by time range and limiting results.

Instructions

Get recently played tracks with timestamps

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoUnix timestamp ms — return tracks played after this time
limitNo1–50. Default: 20
beforeNoUnix timestamp ms — return tracks played before this time
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.26.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / after / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / after / minimum
      Added value: +-9007199254740991
    • addedInput schema / properties / before / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / before / minimum
      Added value: +-9007199254740991
    • addedInput schema / properties / max_results
      Added value: +{
      +  "description": "Max items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)",
      +  "exclusiveMinimum": 0,
      +  "maximum": 2000,
      +  "type": "integer"
      +}
    • addedInput schema / properties / response_format
      Added value: +{
      +  "default": "concise",
      +  "description": "'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object",
      +  "enum": [
      +    "concise",
      +    "detailed",
      +    "json"
      +  ],
      +  "type": "string"
      +}
  2. First observedv1.0.1

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It only mentions timestamps, giving a hint about the output, but does not state whether the operation is read-only, how results are ordered, whether there is pagination, or what the response structure looks like.

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 a single concise sentence with no wasted words. It is efficient and easily parsed, though it might be too terse given the missing guidance and behavioral context.

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

Completeness2/5

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

Given there is no output schema and no annotations, the description is insufficient. It does not explain the meaning of 'recently', the ordering of results, the output format, or any caveats. An agent would have to infer too much.

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%, with each parameter having a description. The tool description adds no meaningful parameter context beyond what the schema already provides, so the baseline of 3 is appropriate.

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 the tool retrieves recently played tracks and includes timestamps, making the core purpose unambiguous. However, it does not explicitly differentiate from siblings like get_top_tracks or listening_history_export, though the name itself is fairly distinctive.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternative tools such as get_top_tracks or listening_history_export. There is no mention of prerequisites, typical use cases, or conditions that would make this tool preferable.

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

Deploy Server

Other Tools