Skip to main content
Glama

Search Spotify

search
Read-onlyIdempotent

Search the Spotify catalog by name to find ids for the other tools. type picks what to search: tracks, artists, albums or playlists. Returns up to limit hits (max 20) with id, name, key fields and open.spotify.com URL, plus results (id such as track:, title, url) for the fetch tool. For track searches, include_play_counts adds each hit's lifetime play count.

Input Schema

NameRequiredDescriptionDefault
typeNoWhat to search for.tracks
limitNoNumber of results (1-20).
queryYesSearch text, e.g. 'Bad Bunny' or 'blinding lights the weeknd'.
include_play_countsNoTrack searches only: add lifetime play counts (slightly slower).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With read-only, idempotent, and open-world annotations already present, the description adds useful behavioral detail: result fields, the 20-hit cap, the `results` array for fetch, and that play-count inclusion is slightly slower. It does not fully specify all returned fields or pagination behavior, so it falls short of 5.

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?

The description is front-loaded with the core purpose and then layers in type behavior, return structure, and the play-count caveat. Every sentence adds actionable information without redundancy.

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

Completeness5/5

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

There is no output schema, so the description appropriately explains what search returns, including IDs, names, URLs, and the `results` array for the fetch tool. Combined with annotations covering safety and idempotency, it gives an agent enough context to call the tool correctly.

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 the schema already documents all four parameters. The description clarifies `type` options and reinforces the return-oriented role of `results` and `include_play_counts`, but most parameter meaning is already present in structured fields.

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 specific verb and resource: search the Spotify catalog by name to find IDs. It distinguishes itself from sibling tools by positioning search as the ID-discovery step for other tools such as fetch.

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

Usage Guidelines4/5

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

It clearly says to use search to find IDs for other tools and explains that `type` selects tracks, artists, albums, or playlists. It does not explicitly compare against every sibling like get_album or get_track_insights, but the intended usage context is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.