Skip to main content
Glama

get_item_info

Retrieve detailed metadata for Spotify tracks, albums, artists, or playlists by providing their Spotify ID and type to access comprehensive information.

Instructions

Get detailed information about a Spotify item
Args:
    item_id: Spotify ID
    type: One of 'track', 'album', 'artist', 'playlist'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
item_idYes
typeNotrack

Implementation Reference

  • main.py:90-98 (handler)
    The main handler function for the 'get_item_info' tool. It is decorated with @mcp.tool() which also serves as the registration. The function fetches detailed information about a Spotify item (track, album, artist, or playlist) using the SpotifyClient instance.
    @mcp.tool()
    async def get_item_info(item_id: str, type: str = "track") -> str:
        """
        Get detailed information about a Spotify item
        Args:
            item_id: Spotify ID
            type: One of 'track', 'album', 'artist', 'playlist'
        """
        return await client.get_info(item_id, type)
  • main.py:90-90 (registration)
    The @mcp.tool() decorator registers the get_item_info function as an MCP tool.
    @mcp.tool()
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure but offers minimal information. It mentions retrieving 'detailed information' but doesn't specify what details are included, whether authentication is required, rate limits, or error conditions. This leaves significant behavioral aspects undocumented.

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 appropriately concise with a clear purpose statement followed by parameter explanations. The two-sentence structure is efficient, though the parameter documentation could be slightly better integrated rather than appearing as a separate 'Args:' section.

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

Completeness2/5

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

For a tool with no annotations, no output schema, and 2 parameters, the description is incomplete. It doesn't explain what 'detailed information' includes in the response, doesn't mention authentication requirements for Spotify API access, and provides minimal behavioral context. This leaves significant gaps for an AI agent to understand the tool fully.

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?

The description adds meaningful parameter context beyond the schema, explaining that 'item_id' is a 'Spotify ID' and 'type' accepts specific values ('track', 'album', 'artist', 'playlist'). Since schema description coverage is 0%, this compensates somewhat, though it doesn't fully document all parameter semantics like format requirements or constraints.

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?

The description clearly states the tool's purpose with a specific verb ('Get') and resource ('detailed information about a Spotify item'), making it immediately understandable. However, it doesn't differentiate this tool from potential siblings like 'get_current_track' or 'get_artist_top_tracks' that also retrieve Spotify item information, preventing a perfect score.

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?

The description provides no guidance on when to use this tool versus alternatives. With siblings like 'get_current_track' for currently playing items or 'get_artist_top_tracks' for artist-specific data, there's no indication of when this general item info tool is preferred over more specialized ones.

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

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