Skip to main content
Glama

market_availability

Check if a track, episode, or album is playable in specified markets. Returns per-market availability and lists all available markets.

Instructions

Per-entity multi-market preview — checks if a track/episode/album is playable in each of 1-10 given markets (N× GET /{type}/{id}?market=X). Reports per-market available/404 plus full available_markets. 🟡 (N reads, 1-10). Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriYesSpotify URI (track/episode/album)
marketsYesMarket codes to test (1-10, e.g. ["US","JP","DE"])
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.28.0
    • removedInput schema / properties / markets / items / maxLength
      Removed value: -5
    • removedInput schema / properties / markets / items / minLength
      Removed value: -2
    • addedInput schema / properties / markets / items / pattern
      Added value: +"^[A-Za-z]{2}$"
  2. Addedv1.26.1

TDQS

A4.3/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. It discloses the tool is read-only, explains it performs N^ times GET requests (1-10 reads), and describes what it reports (per-market available/404 plus full available_markets). Minor gap: no mention of error handling or rate-limit risk, 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 two sentences, front-loaded with the core purpose, and includes only essential details (cost, output, read-only). No wasted words; the emoji and shorthand efficiently convey the N-read behavior.

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?

For a simple read-only tool with no output schema, the description is complete: purpose, cost (N reads), return contents, and read-only safety are all stated. Parameters are fully documented in the schema. Nothing needed for correct invocation is missing.

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 baseline is 3. The description adds a little context by linking 'uri' to playability checks and 'markets' to the 1-10 market list, but largely reiterates what the schema already documents. No significant extra parameter meaning beyond schema.

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?

Description states a specific verb and resource: 'checks if a track/episode/album is playable in each of 1-10 given markets'. It clearly differentiates from siblings like get_available_markets by specifying per-entity multi-market preview and listing the exact output (per-market available/404 plus full available_markets).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Provides clear context for when to use: when needing a per-market playability check across 1-10 specific markets. It implies distinction from single-market or full-market-list tools but doesn't explicitly name alternatives or exclusions, so not a 5.

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