Skip to main content
Glama

spotify_query_library

Search and filter your Spotify library by artist, track, album, playlist, or date added to locate songs and retrieve their URIs.

Instructions

Query your synced library with filters. Returns matching tracks with URIs.

All filters are combined with AND logic. All text matching is case-insensitive and supports partial matches.

Args: artists: Filter by artist names (partial match, case-insensitive). playlist_name: Filter to tracks from a specific playlist (partial match). added_after: Only tracks added after this date (YYYY-MM-DD). added_before: Only tracks added before this date (YYYY-MM-DD). source: "liked", "playlists", or "all" (default "all"). track_name: Filter by track name (partial match). album_name: Filter by album name (partial match). limit: Max results (default 200, max 500).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
artistsNo
playlist_nameNo
added_afterNo
added_beforeNo
sourceNoall
track_nameNo
album_nameNo
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Since no annotations are provided, the description carries the full burden. It successfully discloses that filters use AND logic and that text matching is case-insensitive with partial matches. However, it omits whether the operation is read-only (implied by 'Query' but not stated) and lacks details on pagination behavior.

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 efficiently structured with a clear purpose statement followed by behavioral logic and a comprehensive Args list. No redundant text; the Args section format effectively conveys the necessary parameter information without waste.

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?

Given the existence of an output schema, the brief mention of return values (tracks with URIs) is sufficient. The description adequately covers the 8 parameters and filtering logic, though mentioning how returned URIs connect to sibling tools like spotify_add_to_playlist would enhance completeness further.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by documenting all 8 parameters, including data formats (YYYY-MM-DD), enum values for source ('liked', 'playlists', 'all'), and constraints (max 500). This adds critical semantic meaning entirely missing from the schema.

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?

States it queries the synced library with filters and returns tracks with URIs, providing specific verb and resource. Distinguishes from general search tools like spotify_search, though it doesn't explicitly differentiate from spotify_get_saved_tracks or spotify_find_song.

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

Usage Guidelines2/5

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

Provides no guidance on when to use this tool versus alternatives like spotify_search (general Spotify search) or spotify_get_saved_tracks (simple retrieval). Missing explicit 'when to use' or 'when not to use' recommendations among the many sibling tools.

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/gupta-kush/spotify-mcp'

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