Skip to main content
Glama

get_category

Retrieve details of a specific Spotify browse category using its ID. Specify locale and country for localized data, and choose concise, detailed, or raw JSON output.

Instructions

Get a single Spotify browse category by ID (GET /browse/categories/{id}). Quota: 🟢 single.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
localeNoLocale, e.g. en_US
countryNoISO 3166-1 alpha-2 country code, e.g. 'US'
category_idYesCategory ID from get_categories
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.6/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden. It explicitly shows GET, implying a read-only operation, and provides quota information ('🟢 single'). However, it does not explain required auth, error behavior, or what the returned data looks like beyond the response_format parameter in the schema.

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?

The description is a single, compact sentence with no filler; the quota note is useful extra context. The explicit endpoint is slightly redundant with 'by ID' but still helpful for API-aware agents.

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

Completeness3/5

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

For a simple single-category lookup, the description plus schema covers the essential calling contract. However, it does not clarify how this differs from nearby tools like browse_category_deepdive or category_resolver, and there is no explanation of the concise/detailed/json response_format behavior beyond the schema.

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%, and all four parameters are already well-described in the schema. The description itself adds no additional parameter meaning, so the baseline of 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 clear action ('Get'), a precise resource ('a single Spotify browse category'), and the lookup key ('by ID'). It is distinguishable from siblings like get_categories (plural list) and get_category_playlists (playlists within a category).

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 through the endpoint and the schema note that category_id comes from get_categories, but the description does not explicitly say when to prefer this over alternatives such as get_category_playlists or browse_category_deepdive. It is adequate but not directive.

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