Skip to main content
Glama

play_from_search

Searches Spotify by name and plays the best match for songs or podcast episodes, eliminating the need for a URI.

Instructions

Search Spotify by name and immediately play the best match. Works for songs and podcast episodes — no URI needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch text, e.g. a song title or podcast episode name
device_idNoTarget device ID; uses active device if omitted
search_typeNoWhat to search for: 'track' (song) or 'episode' (podcast episode)track
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It only states that it plays the best match, but does not mention what happens if no match is found, whether it requires an active device, or that it may interrupt current playback. These are significant gaps for a mutation tool.

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 a single sentence with zero waste. The core action and scope are front-loaded, making it immediately clear what the tool does.

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 tool with well-described parameters, the description covers the main intent. However, it omits failure behavior (no match found) and side effects on playback state, which an agent would need to know for a mutation operation. It is adequate but not comprehensive.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds value by clarifying that the query is searched by name and that no URI is needed, and it maps search_type to explicit content types (songs and episodes). This goes beyond the schema descriptions.

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 action (search and play) with a clear resource (Spotify content by name). It explicitly mentions scope (songs and podcast episodes) and differentiates itself from siblings by noting 'no URI needed.' This is not a tautology and stands distinct from the search and play tools.

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 a use case (quick play by name) but does not explicitly state when to use this tool versus alternatives like search or play, nor does it mention exclusions (e.g., when a URI is already known). Guidance is implicit at best.

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