Skip to main content
Glama

spotify_query_library

Search your synced Spotify library with filters like artist, playlist, date range, and source to find matching tracks with 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?

Discloses AND logic, case-insensitive partial matching, and default limit. With no annotations, the description carries full burden but lacks details on side effects (none), authorization needs, or output structure beyond URIs.

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?

Concise, front-loaded purpose, structured Args list with no redundancies. Every line adds value.

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?

Covers all parameter behaviors and core purpose. Missing pagination details or mention that query is local library. Output schema exists, so return structure is partially handled. Good overall.

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?

Schema coverage is 0%, but description provides detailed explanations for all 8 parameters, including behavior (partial match, case-insensitive, date formats). Fully compensates for schema gaps.

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?

Clearly states verb (query), resource (synced library), and result (matching tracks with URIs). Distinguishes from siblings like spotify_search (general search) and spotify_get_saved_tracks (saved tracks only).

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?

Implied usage for querying synced library, but no explicit guidance on when to use vs alternatives like spotify_search or spotify_library_stats. Missing when-not-to context.

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