Skip to main content
Glama
Captapi MCP Server

Captapi MCP Server

Official

Spotify Track

spotify_track

Retrieve track details including play count, artists, album, explicit status, and release date from a Spotify URL, URI, or ID; enable cache to avoid charges on repeat lookups.

Instructions

Spotify track — playCount, joinable artists[]/album{}, explicit, releaseDate (1 credit). Costs 1 credit. Empty results and failures are never charged. Pass cache=true for a free 24h cache hit (default always fresh).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "spotify_track"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNoInclude the upstream GraphQL payload as data.raw. Default false — getTrack embeds bulky artist discography.
urlYesSpotify URL, URI, or ID. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble.
cacheNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the call costs 1 credit, that empty results and failures are never charged, and that cache=true yields a free 24h cached response while default is always fresh. It stops short of describing error shapes or rate limits, but the billing and caching behavior is the key operational context an agent needs.

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?

Compact and front-loaded: return fields first, then cost, then caching. The telegraphic phrasing ('joinable artists[]/album{}') is slightly cryptic and the 1-credit cost is stated twice, but there is little waste overall.

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?

There is no output schema, and the description compensates by listing the returned fields, plus credits and cache behavior for a paid endpoint. For a simple single-URL lookup, that covers what an agent needs to call it correctly; only explicit sibling routing is missing.

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 would be 3, but the description adds cost semantics the schema lacks: cache=true is free on a hit and the default is always fresh. It also notes the raw payload includes bulky artist discography, reinforcing the schema's raw description.

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?

Names the resource ('Spotify track') and enumerates what it returns (playCount, artists[]/album{}, explicit, releaseDate), so an agent can tell it apart from spotify_album or spotify_artist. The verb is only implied ('Spotify track — ...') rather than stated as 'fetch track details', which keeps it from 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete usage guidance for the cache flag ('pass cache=true for a free 24h cache hit, default always fresh') and cost context. However, it offers no explicit routing versus siblings like spotify_search or soundcloud_track, so when-to-use-this-instead is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools