Skip to main content
Glama

browse_category_deepdive

Retrieve a Spotify category's playlists and peek at top tracks from the first playlist with one API call.

Instructions

Category → playlists → optional items peek in one call (GET /browse/categories/{id} + /playlists (+ /playlists/{id}/tracks peek)). Quota: 🟡 2–3 calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoPlaylists per page, 1–50. Default: 10
localeNoLocale, e.g. en_US
countryNoISO 3166-1 alpha-2 country code, e.g. 'US'
peek_itemsNoWhen true, fetch top 2 tracks of the first playlist
category_idYesCategory ID from get_categories
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.28.0
    • changedInput schema / properties / country / description
      Previous value: -"ISO 3166-1 alpha-2 country code"New value: +"ISO 3166-1 alpha-2 country code, e.g. 'US'"
    • addedInput schema / properties / country / pattern
      Added value: +"^[A-Za-z]{2}$"
  2. Addedv1.26.1

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and it does disclose meaningful traits: it makes 2–3 underlying API calls, the calls are GETs (read-only), and the optional track peek is part of the same operation. Quota cost is explicitly surfaced. It could add return-format detail, but the endpoint/call behavior is transparent.

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 pack the operation, endpoints, optional behavior, and quota with no filler. The main behavior is front-loaded before implementation details.

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 7-parameter tool with one required param and no output schema, the description gives enough to invoke correctly: required category_id is implied by the endpoint, optional peek behavior is flagged, and quota is disclosed. A bit more detail about response shape would be nice, but it is not critical for calling it.

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 is already documented. The description adds no parameter-level semantics beyond the endpoint placeholders ({id}, {id}/tracks), so the baseline 3 applies.

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?

The description states a clear composite operation ('Category → playlists → optional items peek') and specifies the exact endpoint chain, so an agent can tell this aggregates category, playlists, and optional tracks. It doesn't explicitly name sibling alternatives, but the one-call/hierarchy framing distinguishes it from single-level tools like get_category_playlists.

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 context is implied: use when you want category and playlist data in one call, optionally with a track peek. There is no explicit when-not or alternative routing (e.g., 'use get_category_playlists for just playlists'), so the guidance is adequate but not explicit.

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

Deploy Server

Other Tools