Skip to main content
Glama

Get Artist Top Tracks

get_artist_top_tracks
Read-onlyIdempotent

Top tracks for an artist in a market. Spotify restricts this endpoint to apps with extended access; without it the call is refused with a plain permission message.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "artist_id": "1Xyo4u8uISC60aNvD2MZpP"
    },
    "name": "get_artist_top_tracks"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketNoISO market code (default "US")
artist_idYesSpotify artist ID

Output Schema

NameRequiredDescriptionDefault
tracksNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "artist_id": "1Xyo4u8uISC60aNvD2MZpP"
      +  },
      +  {
      +    "artist_id": "1Xyo4u8uISC60aNvD2MZpP",
      +    "market": "CA"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Top tracks for an artist in a market (Spotify recommendation)",
      +  "properties": {
      +    "tracks": {
      +      "items": {
      +        "properties": {
      +          "album": {
      +            "properties": {
      +              "id": {
      +                "description": "Album ID",
      +                "type": "string"
      +              },
      +              "name": {
      +                "description": "Album name",
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "artists": {
      +            "items": {
      +              "properties": {
      +                "id": {
      +                  "description": "Artist ID",
      +                  "type": "string"
      +                },
      +                "name": {
      +                  "description": "Artist name",
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "duration_ms": {
      +            "description": "Duration in milliseconds",
      +            "type": "number"
      +          },
      +          "id": {
      +            "description": "Track ID",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Track name",
      +            "type": "string"
      +          },
      +          "popularity": {
      +            "description": "Popularity 0-100",
      +            "type": "number"
      +          },
      +          "preview_url": {
      +            "description": "30s preview URL or null",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds value beyond that by disclosing the extended-access requirement and the failure mode (a plain permission refusal), letting the agent anticipate a specific class of error before calling.

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 short sentences, front-loaded with what the tool returns and followed by the access constraint. Every clause earns its place with no restatement of the name or title.

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 only two fully documented parameters, an output schema handling return values, and annotations covering the safety profile, the description covers what remains: the access restriction and its consequence. The one gap is sibling differentiation, which would help an agent choose this over adjacent artist/track tools.

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 artist_id and market (with its US default) are already documented in the schema. The phrase "in a market" reinforces that market scopes results rather than filtering, but adds no format or default detail beyond what structured fields provide — baseline 3.

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?

"Top tracks for an artist in a market" names the resource (artist's top tracks) and the scoping dimension (market), which separates it from plain artist or track lookups. It stops short of explicitly contrasting with siblings like spotify_get_artist or get_track, so an agent must infer that this returns ranked tracks rather than metadata.

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?

The access prerequisite is a genuine usage gate: it tells the agent this call will fail for apps without extended access, which informs when to attempt it. However, there is no explicit guidance on when to prefer this over the sibling track/artist tools, so the routing decision is left implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.