Skip to main content
Glama

get_artist_top_tracks

Retrieve an artist's ten most-played tracks in a specified market.

Instructions

Get an artist's ten most-played tracks for a market. Removed by Spotify's February 2026 Web API changes — unavailable for newer app registrations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesSpotify artist ID
marketNoISO 3166-1 alpha-2 country code, e.g. 'US' — defaults to the account country
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. Changed2 schema fields changedv1.28.0
    • changedInput schema / properties / market / description
      Previous value: -"ISO 3166-1 alpha-2 country code. Defaults to the account country."New value: +"ISO 3166-1 alpha-2 country code, e.g. 'US' — defaults to the account country"
    • addedInput schema / properties / market / pattern
      Added value: +"^[A-Za-z]{2}$"
  2. Addedv1.26.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description bears full responsibility. It does disclose the February 2026 removal and unavailability for newer apps, which is useful. However, it says 'ten most-played tracks' while the schema default is 50 and max is 2000, creating an inconsistency. It also doesn't mention errors, rate limits, or what happens when the endpoint is unavailable.

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?

Two sentences with no filler. The purpose is front-loaded and the deprecation warning is placed second, which is a logical order. Every word earns its place.

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?

For a read-only fetch tool with no output schema, more guidance is needed. The deprecation is mentioned but not the workaround or alternative endpoints. The mismatch between 'ten' and the configurable max_results leaves the agent uncertain about actual behavior. A tool that may be broken in many environments needs more context than this.

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 description coverage is 100%, so the baseline is 3. The description does not add parameter-level detail beyond the schema, and the 'ten' wording could confuse interpretation of max_results. No severe gap, but no added value either.

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 action and resource: 'Get an artist's ten most-played tracks for a market.' It is distinct from sibling tools like get_artist or get_top_tracks (which likely refer to the user's own top tracks). The 'ten' is somewhat inconsistent with the max_results parameter, but the core purpose is unambiguous.

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?

The deprecation note tells the agent when the tool is unavailable ('newer app registrations') but offers no alternative tool to use instead. There is no guidance on choosing this over sibling tools like get_artist_top_tracks or get_artist. The when-not-to-use is only partially addressed.

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