Skip to main content
Glama

Get Track

get_track
Read-onlyIdempotent

Single track by Spotify ID. Returns artists, album, popularity, preview URL, duration.

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": {
      "track_id": "7e5QyScdgY4UFu3eYgy71w"
    },
    "name": "get_track"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketNoMarket for availability
track_idYesSpotify track ID (base62)

Output Schema

NameRequiredDescriptionDefault
idNoTrack ID
nameNoTrack name
albumNo
artistsNo
explicitNoExplicit content flag
popularityNoPopularity 0-100
duration_msNoDuration in milliseconds
is_playableNoPlayable in market
preview_urlNo30s preview URL or null

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "track_id": "11dFghVXANMlKmJXsNCQvb"
      -  },
      -  {
      -    "market": "GB",
      -    "track_id": "11dFghVXANMlKmJXsNCQvb"
      -  }
      -]New value: +[
      +  {
      +    "track_id": "7e5QyScdgY4UFu3eYgy71w"
      +  },
      +  {
      +    "market": "GB",
      +    "track_id": "7e5QyScdgY4UFu3eYgy71w"
      +  }
      +]
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "track_id": "11dFghVXANMlKmJXsNCQvb"
      +  },
      +  {
      +    "market": "GB",
      +    "track_id": "11dFghVXANMlKmJXsNCQvb"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Spotify track with artists, album, popularity, preview URL, duration",
      +  "properties": {
      +    "album": {
      +      "properties": {
      +        "id": {
      +          "description": "Album ID",
      +          "type": "string"
      +        },
      +        "images": {
      +          "items": {
      +            "properties": {
      +              "height": {
      +                "description": "Image height pixels",
      +                "type": "number"
      +              },
      +              "url": {
      +                "description": "Image URL",
      +                "type": "string"
      +              },
      +              "width": {
      +                "description": "Image width pixels",
      +                "type": "number"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "name": {
      +          "description": "Album name",
      +          "type": "string"
      +        },
      +        "release_date": {
      +          "description": "Release date (YYYY-MM-DD)",
      +          "type": "string"
      +        },
      +        "total_tracks": {
      +          "description": "Total tracks on album",
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "artists": {
      +      "items": {
      +        "properties": {
      +          "genres": {
      +            "description": "Artist genres",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "id": {
      +            "description": "Artist ID",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Artist name",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "duration_ms": {
      +      "description": "Duration in milliseconds",
      +      "type": "number"
      +    },
      +    "explicit": {
      +      "description": "Explicit content flag",
      +      "type": "boolean"
      +    },
      +    "id": {
      +      "description": "Track ID",
      +      "type": "string"
      +    },
      +    "is_playable": {
      +      "description": "Playable in market",
      +      "type": "boolean"
      +    },
      +    "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"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds which fields are returned (artists, album, popularity, preview URL, duration), which is light context rather than behavioral depth – nothing about auth requirements, error behavior for invalid IDs, or market fallback.

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, front-loaded sentences with no filler: identity first, then return payload. Every clause carries information and nothing is repeated.

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 simple two-parameter read tool with full schema coverage and an output schema, this is nearly complete – the agent knows what it retrieves and roughly what comes back. The small gap is the unmentioned optional market parameter's behavior, which the output schema does not resolve.

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 both track_id (base62 Spotify track ID) and market (availability market) are already documented in the schema. The description reinforces the ID key but says nothing about the optional market parameter or its effect, so it adds little beyond the structured field definitions.

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 specific resource and lookup key: 'Single track by Spotify ID,' which lets an agent distinguish it from album- and artist-level siblings like get_album or get_artist_top_tracks. It does not explicitly name those alternatives, but the scope ('single track') 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 Guidelines3/5

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

Usage is only implied by the scope statement – fetch one track when you have its Spotify ID. There is no explicit when-to-use/when-not-to-use guidance, no mention of when to prefer get_album or get_audio_features instead, and no prerequisites stated.

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.