Skip to main content
Glama

get_recommendations

Generate a deduplicated candidate list of music artists from a user's top artists, similar artists, and shared tags, with signals to rank and personalize recommendations.

Instructions

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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
userNoLast.fm username. Omit to use the configured default user.
periodNoTime period to pull the user's top artists from. Default 1month.1month
max_candidatesNoMaximum recommendation candidates to return after deduplication and filtering.
similar_per_seedNoHow many similar artists to fetch per seed artist (5-20).
seed_artist_countNoHow many of the user's top artists to use as recommendation seeds (3-15). More seeds = broader but slower.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so well: it discloses deduplication behavior, what signals accompany each candidate, the cold-call cost (~40 API requests, 10-15 seconds), and that subsequent calls are fast due to caching. That is exactly the performance and side-effect information an agent needs before invoking it.

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?

Four sentences, front-loaded with purpose, then output shape, then the agent's downstream responsibility, then the performance caveat. Nothing is redundant and each sentence contributes information the agent would otherwise lack.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by describing the return shape — a deduplicated artist list with triggering artist, similarity score, and shared tags. Combined with the cost/caching note and full schema coverage on inputs, an agent has everything needed to call this correctly.

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 every parameter including its enum, defaults, and bounds is already documented. The description adds no parameter-level detail beyond restating that top artists are combined and candidates deduplicated; one parameter's tradeoff ('more seeds = broader but slower') is already stated in the schema itself. Baseline 3 applies.

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?

The description states a specific verb and resource — 'Generates a raw candidate list for music artist recommendations' — and explains the mechanism (top artists + similar artists + shared tag analysis). It also specifies the output (deduplicated artists the user likely doesn't know well, plus per-candidate signals), which is enough to distinguish it from sibling lookup tools like get_artist_info or get_tag_info.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It clearly frames the agent's role: this returns 'raw material' and the agent should 'use your own reasoning to rank, explain, and personalize the final recommendations,' which is a real usage instruction. It also signals cost-driven usage via the cold-call warning. It stops short of naming explicit alternatives or saying when NOT to use it, so it falls short of a 5.

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