Skip to main content
Glama

format_spotify_uri

Convert a Spotify entity kind and ID into a canonical spotify: URI. Validates the ID shape and returns null for malformed pairs.

Instructions

Format an entity kind + ID pair into a canonical spotify: URI locally; validates the ID shape and returns null when the pair is malformed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesSpotify entity ID
kindYesEntity kind, e.g. track, album, artist, playlist, show, episode, audiobook, user
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. It discloses that the operation is local, validates the ID shape, and returns null on malformed input, which is valuable and non-obvious. It does not clarify all edge cases, but the key behavioral traits are covered.

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 dense sentence that front-loads the core purpose and then adds the two most important behavioral details: local execution and null-on-malformed. There is no filler or redundant restating of the tool name.

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 pure function, the description is mostly adequate: it states inputs, output, locality, and failure behavior. However, it leaves the response_format parameter unexplained and unmentioned, and without an output schema the valid-return behavior relies entirely on the phrase 'canonical spotify: URI.' This is a noticeable gap for an agent that must 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 coverage is 100%, so the schema already documents all parameters and provides the baseline of 3. The description does add meaning by framing the inputs as an 'entity kind + ID pair' and noting validation, but it does not explain the response_format parameter, whose schema description suggests prose/JSON output rather than a URI string.

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 states a specific operation: formatting an entity kind + ID pair into a canonical spotify: URI. It clearly identifies the input form and the output, and the qualifier 'locally' distinguishes it from network-backed tools, though it does not explicitly name or differentiate any sibling tool.

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?

No guidance is given about when to use this tool versus the many sibling URI utilities such as make_spotify_uri, normalize_spotify_uri, canonicalize_spotify_uri, or validate_spotify_uri. The usage is only implied by the operation name and description, with no explicit alternatives, exclusions, or selection criteria.

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