Skip to main content
Glama

Get Album

get_album
Read-onlyIdempotent

Fetch a Spotify album by album_id. Returns name, artists, release date, total tracks, label, genres, popularity, images, and full tracklist with track IDs and durations. Optional market filter.

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": {
      "album_id": "0ETFjACtuP2ADo6LFhL6HN"
    },
    "name": "get_album"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketNoMarket for availability
album_idYesSpotify album ID

Output Schema

NameRequiredDescriptionDefault
idNoAlbum ID
nameNoAlbum name
imagesNo
tracksNo
artistsNo
popularityNoPopularity 0-100
release_dateNoRelease date (YYYY-MM-DD)
total_tracksNoTotal tracks on album
release_date_precisionNoPrecision (year/month/day)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "album_id": "2noRn2Aes5aoNVsU6iWjc0"
      -  },
      -  {
      -    "album_id": "2noRn2Aes5aoNVsU6iWjc0",
      -    "market": "US"
      -  }
      -]New value: +[
      +  {
      +    "album_id": "0ETFjACtuP2ADo6LFhL6HN"
      +  },
      +  {
      +    "album_id": "0ETFjACtuP2ADo6LFhL6HN",
      +    "market": "US"
      +  }
      +]
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "album_id": "2noRn2Aes5aoNVsU6iWjc0"
      +  },
      +  {
      +    "album_id": "2noRn2Aes5aoNVsU6iWjc0",
      +    "market": "US"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Album record with tracklist",
      +  "properties": {
      +    "artists": {
      +      "items": {
      +        "properties": {
      +          "id": {
      +            "description": "Artist ID",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Artist name",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "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"
      +    },
      +    "popularity": {
      +      "description": "Popularity 0-100",
      +      "type": "number"
      +    },
      +    "release_date": {
      +      "description": "Release date (YYYY-MM-DD)",
      +      "type": "string"
      +    },
      +    "release_date_precision": {
      +      "description": "Precision (year/month/day)",
      +      "type": "string"
      +    },
      +    "total_tracks": {
      +      "description": "Total tracks on album",
      +      "type": "number"
      +    },
      +    "tracks": {
      +      "properties": {
      +        "href": {
      +          "description": "API endpoint for tracks",
      +          "type": "string"
      +        },
      +        "items": {
      +          "items": {
      +            "properties": {
      +              "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"
      +              },
      +              "is_playable": {
      +                "description": "Playable in market",
      +                "type": "boolean"
      +              },
      +              "name": {
      +                "description": "Track name",
      +                "type": "string"
      +              },
      +              "track_number": {
      +                "description": "Track number on album",
      +                "type": "number"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "limit": {
      +          "description": "Items per page",
      +          "type": "number"
      +        },
      +        "offset": {
      +          "description": "Offset in results",
      +          "type": "number"
      +        },
      +        "total": {
      +          "description": "Total tracks",
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.7/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 that the payload includes the full tracklist with IDs and durations plus album metadata, which is useful context, but it does not address error behavior for an invalid album_id, rate limits, or market-availability edge cases.

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?

Two sentences, front-loaded with the core action and identifier. The enumerated return fields are somewhat redundant given an output schema exists, which keeps it from a 5.

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?

A simple two-parameter read with full annotation coverage and an output schema; the description covers what it fetches and the one optional filter. Only minor gaps remain, such as behavior on an unknown album_id or a market where the album is unavailable.

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 both album_id and market are already documented in the schema. The description's mention of an optional market filter aligns with but does not extend the schema's 'Market for availability' note; per the coverage baseline this lands at 3.

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?

'Fetch a Spotify album by album_id' gives a specific verb plus resource and pins the identifier type, so an agent can immediately tell this apart from track- or artist-level siblings such as get_track and get_artist_top_tracks.

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 trailing 'Optional market filter' hints at when to supply market, but there is no explicit statement of when to choose this tool over get_track, get_artist_top_tracks, or get_audio_features, and no exclusions or prerequisites are given.

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.