Skip to main content
Glama

normalize_spotify_uri

Convert any Spotify link, URI, or bare ID into a canonical lowercase spotify: URI offline, stripping extra segments and tracking parameters.

Instructions

Normalise any accepted Spotify reference form (URI with extra segments, URL with tracking params, bare ID) into its canonical lowercase spotify: URI, offline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refYesSpotify reference in any accepted form
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
Behavior3/5

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

There are no annotations, so the description carries the behavioral disclosure burden. It usefully states that the operation is offline and that the output is canonical and lowercase, and it enumerates accepted input forms. However, it does not describe behavior for invalid references, nor reconcile the response_format enum (especially 'raw API object') with the stated 'canonical spotify: URI' output.

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 dense sentence with no filler. The core behavior is front-loaded, and the parenthetical examples add precision without bloating the description. 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 two-parameter pure formatter, the description is nearly complete: it gives the accepted input forms, the exact output form, and the network behavior. The main gaps are the unmentioned response_format behavior and lack of invalid-input semantics, but the schema covers the parameter and no output schema is required.

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?

The schema covers 100% of parameters, so the baseline is 3. The description adds real value for 'ref' by naming concrete accepted forms that the schema's 'Spotify reference in any accepted form' leaves circular. It does not add anything to response_format, but that parameter is already fully described in the schema.

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 transformation: convert any accepted Spotify reference form into a canonical lowercase spotify: URI, with concrete examples (extra segments, tracking params, bare ID). This is clearly more than a tautology. However, it does not distinguish itself from the similarly named sibling canonicalize_spotify_uri, so it stops short of a 5.

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 alternatives, exclusions, or when-not-to-use guidance are provided. Given the large cluster of URI utility siblings (validate_spotify_uri, parse_spotify_uri, format_spotify_uri, canonicalize_spotify_uri), an agent receives no explicit rule for choosing this tool over them. The word 'offline' is useful context but not a routing criterion.

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