Skip to main content
Glama

Search tracks

search_tracks
Read-only

Find tracks by text, genre, tag, BPM, duration, or upload date, with playback status and metadata to choose music for playlists.

Instructions

Search tracks by text and/or filters (genres, tags, BPM, duration, upload date). Returns id, title, user, BPM, key, Camelot, genre, label, release date, plays, likes, access and listen. Each track has 'listen': full = plays in full for anyone; go_plus = snippet without a subscription, full with Go+; go_plus_probable = label catalogue the API won't stream off SoundCloud, usually full with Go+ on SoundCloud (no regional guarantee); restricted = blocked, no label or ISRC (rights, region or uploader): may not play even with Go+. All can be added to playlists. The API does not report whether the user has Go+. only_listenable=true keeps full and, with Go+ declared, go_plus and go_plus_probable (likely, not guaranteed; to be sure use listen full or go_plus). Tracks without bpm are dropped when filtering by BPM. For the next page, pass next_cursor as cursor. The user has not declared Go+ (SC_GO_PLUS): only 'full' plays in full; go_plus plays a snippet.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_tracks"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoTrack tags
limitNoMaximum results (default 10)
queryNoSearch text (artist and title)
cursorNonext_cursor from a previous call, for the next page
genresNoGenres, e.g. ["Techno", "House"]
bpm_maxNo
bpm_minNo
duration_max_sNoMaximum duration in seconds
duration_min_sNoMinimum duration in seconds
uploaded_afterNoUploaded on or after (YYYY-MM-DD)
only_listenableNoKeep full and, with Go+ declared, go_plus and go_plus_probable (the latter is likely, not guaranteed)
uploaded_beforeNoUploaded on or before (YYYY-MM-DD)
include_restrictedNoInclude preview/blocked tracks as well as playable ones (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses non-obvious behavioral traits: the four-value 'listen' taxonomy, that the API does not report Go+ status, that tracks lacking bpm are silently dropped under BPM filters, and that only_listenable is a probabilistic filter. These are exactly the caveats an agent needs to avoid misinterpreting results, and none of them are contradicted by the annotations.

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?

Purpose and returned fields are front-loaded, and information density is high. The Go+ / listen-mode explanation is repeated near the end ("The user has not declared Go+ ..."), making the paragraph denser and more rambling than necessary, but nearly every sentence carries operational value.

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

Completeness5/5

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

With 13 parameters and no output schema, the description compensates by enumerating the returned fields (id, title, bpm, key, Camelot, listen, etc.) and by explaining pagination and listenability edge cases. An agent has everything needed to call it correctly and interpret results.

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 85%, so the schema carries most parameter documentation, but the description adds real semantics: the interaction between only_listenable and the caller's Go+ status, and the side effect that BPM filtering excludes tracks without bpm — neither is stated in the schema. It also clarifies that cursor comes from a previous call's next_cursor.

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 opening sentence names a specific verb and resource ("Search tracks") and enumerates the filterable dimensions (genres, tags, BPM, duration, upload date). The resource word 'tracks' alone separates it from siblings search_playlists and search_users, and it also lists the exact fields returned.

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?

There is rich guidance about how to use filters and pagination ("For the next page, pass next_cursor as cursor") and about which listenability settings are safe. However, it never says when to choose this over alternatives such as get_track or suggest_tracks, nor when not to use it. Usage is strongly implied by the filter enumeration but no explicit selection criteria between tools are given.

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