Skip to main content
Glama

parse_spotify_uri

Parse a Spotify URI, URL, or bare ID to extract entity type and ID, validating the input and reporting errors without any network call.

Instructions

Parse a single spotify: URI into its entity kind and ID parts without any network call; reports validity and a parse error when malformed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriYesSpotify URI, open.spotify.com URL, or bare ID to parse
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden, and it discloses the two most decision-relevant traits: this is a network-free operation (implying no side effects, auth, or rate limits) and malformed input yields a parse error rather than silent failure. It also states the success output (entity kind and ID parts) but stops short of describing exact return structure, which is acceptable for a deterministic parse utility.

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?

A single sentence front-loads the verb and resource, then packs the network-free guarantee, output parts, validity reporting, and error behavior into one clause with zero redundancy. Every word earns its place.

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?

For a low-complexity utility with both parameters fully described in the schema, the description covers purpose, offline behavior, output shape (kind + ID), validity reporting, and malformed-input behavior. With no output schema present, its brief account of return values is sufficient; the only minor gap is that per-mode differences of 'response_format' are left entirely to the schema.

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%, and the schema already documents the 'uri' parameter's three accepted forms (Spotify URI, open.spotfy.com URL, bare ID) and the 'response_format' enum with its default. The description adds no parameter-level meaning beyond the schema's property descriptions, so the baseline 3 applies.

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 names a specific verb ('Parse'), a specific resource (a single spotify: URI), and the outputs (entity kind, ID parts, validity, and an error when malformed). The phrases 'single' and 'without any network call' also implicitly set it apart from batch_parse_spotify_uris and network-dependent tools, so an agent can place it within the dense cluster of spotify-URI siblings.

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 when to use the tool — local, network-free parsing — but it never names alternatives such as validate_spotify_uri, extract_spotify_id, spotify_uri_kind, or batch_parse_spotify_uris, nor does it give when-not-to-use conditions. An agent must infer the boundaries from sibling names alone, which is workable but not guided.

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