Skip to main content
Glama

Search music

music_search
Read-onlyIdempotent

Search your Music library by song, artist, or album to find matching tracks with play counts and last-played dates, using cursor paging for large results.

Instructions

Search the Music library by song, artist or album (every word must match, accents ignored), with play counts and last played dates. Large results come in parts (see paging and cursor).

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": {
      "query": "<query>"
    },
    "name": "music_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax tracks.
queryYes
cursorNoLeave out at first. When a result has paging.has_more, repeat the call with the same arguments plus cursor set to paging.cursor to get the next part.
open_if_closedNoOpen Music if it is not running (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint and non-destructive behavior, so the safety profile is covered. The description adds useful behavior beyond that: accent-insensitive all-words-match semantics and the chunked/paged delivery model. It omits other notable traits implied by the schema, such as that Music may not be running and open_if_closed controls launching it, and says nothing about error behavior.

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?

Two tight sentences, zero padding, with the core search semantics front-loaded before the paging caveat. Every clause carries information an agent needs to call the tool correctly.

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, so the description usefully names the return content (play counts, last played dates, paging.has_more/paging.cursor). It could still say whether an empty result is possible or how the tool errors when the library is unavailable, leaving a minor gap for a 4-parameter tool.

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?

With 75% schema coverage, cursor and open_if_closed are already documented in the schema, while the undescribed query parameter is compensated for by the description's matching rule (every word must match, accents ignored). The mention of 'parts (see paging and cursor)' reinforces the paging parameter's purpose beyond the schema text.

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?

States a specific verb and resource ('Search the Music library by song, artist or album') plus the matching rule (every word must match, accents ignored) and what is returned (play counts and last played dates). It does not explicitly distinguish itself from sibling history tools such as music_top or music_played, so it falls short of full differentiation.

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 clear operational guidance for paging: when a result has paging.has_more, repeat with the same arguments plus paging.cursor. It does not say when to choose this tool over the sibling history/top tools, so the when-to-use guidance is only implied by the search semantics rather than spelled out.

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