Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LASTFM_API_KEYYesYour Last.fm API key. The server will not start without this.
LASTFM_BASE_URLNoOverride the Last.fm API base URL. Defaults to https://ws.audioscrobbler.com/2.0/.https://ws.audioscrobbler.com/2.0/
LASTFM_DEFAULT_USERNoLast.fm username used when no user is specified in a request.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server provides Last.fm music data. Call get_playback_history first to understand a user's listening taste. Then call get_recommendations to get a ranked candidate list of new artists. Use get_artist_info to enrich any artist name with biography and similar artists. Use get_tag_info to explore a genre or mood. Always synthesize recommendations with personalized explanations — don't just list names.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_playback_historyA

Retrieves a Last.fm user's listening history. Use this to understand what music someone has been playing. Provides three views: recent_tracks (chronological, most recent plays), top_artists or top_tracks (aggregated by play count over a time period). Call this first to understand a user's taste before making recommendations.

get_artist_infoA

Retrieves detailed information about a specific music artist from Last.fm. Returns a biography summary, listener and play statistics, top tags (genres/moods), similar artists, and optionally top tracks. Use this when you need to explain why an artist might appeal to a user, or to explore an unfamiliar name from a recommendation list.

get_tag_infoA

Retrieves information about a music tag or genre from Last.fm, including a description and the top artists associated with that tag. Use this when a user mentions a genre, mood, or style, or when you want to find artists in a specific niche that overlaps with a user's known taste.

get_recommendationsA

Generates a raw candidate list for music artist recommendations by combining a user's top artists with their similar artists and shared tag analysis. Returns a deduplicated list of artists the user likely doesn't know well yet, along with signals explaining each candidate (which known artist triggered them, similarity score, shared tags). This provides the raw material — use your own reasoning to rank, explain, and personalize the final recommendations. Note: a cold call fetches ~40 API requests and takes 10-15 seconds; subsequent calls are fast due to caching.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 4 tools

Disambiguation5/5

Each tool targets a distinct entity: user history, an artist, a tag/genre, and a recommendation candidate list. get_recommendations internally uses history data, but the descriptions make the boundary explicit and the intended call order (history first, then recommendations) removes any overlap.

Naming Consistency5/5

All four tools follow a uniform snake_case get_<noun> pattern (get_playback_history, get_artist_info, get_tag_info, get_recommendations). The convention is predictable and readable throughout.

Tool Count4/5

Four tools is lean but each serves a clear role in a read-only taste-analysis workflow. It sits at the low end of the range and could reasonably add a lookup/search tool, but nothing here feels redundant or missing its purpose.

Completeness3/5

The core discovery chain (history -> artist/tag exploration -> recommendations) is covered, but there is no artist/track/album search tool, no track-level metadata, and no user profile or write operations (love/rate). Agents can work around this with tag and artist lookups, but gaps are notable for a Last.fm surface.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues