Skip to main content
Glama

get_saved_counts

Get total saved-item counts for tracks, albums, shows, episodes, audiobooks, and playlists in your Spotify library using efficient limit=1 reads. Quickly see library size without paging through items.

Instructions

Library size snapshot: total counts for tracks/albums/shows/episodes/audiobooks/playlists via limit=1 reads — no item paging. Quota: 🟢 6 GETs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
Behavior4/5

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

With no annotations, the description carries full burden and discloses meaningful behavior: it performs limit=1 reads (cheap, no paging) and reports an explicit quota cost of 6 GETs. It does not describe the response structure or error behavior, but for a read-only counts tool the mechanism and cost disclosure are substantial.

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 sentences with zero filler. Purpose and scope are front-loaded, and the quota line is a compact, high-value addition.

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 tool with one optional parameter, the description covers purpose, mechanism, scope, and quota. The only gap is the exact shape of the returned counts object, which is left to the response_format enum rather than described explicitly — minor since no output schema exists.

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%: response_format's three enum values are fully documented in the schema itself. The description adds no additional parameter detail, which is acceptable at the high-coverage baseline of 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?

The description states a precise purpose: a library size snapshot with total counts for six content types (tracks, albums, shows, episodes, audiobooks, playlists). The phrase 'no item paging' distinguishes it from the many get_saved_* siblings that return item lists rather than counts.

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 description implies the usage context (want counts, not items) via 'total counts... no item paging,' but it never explicitly names alternatives like get_saved_tracks/get_saved_albums or states when to choose those instead. The when-to-use is inferable but not spelled out.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NovaLux12/spotify-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server