Skip to main content
Glama

Play one track for a single session

play_track_session

Play a single track once in a session ($0.05 USDC via x402 v2 or v1). One play, no ownership: no file is kept, no session token and no signed receipt are issued. Returns the play URL and x402 payment requirements; GET the URL with a PAYMENT-SIGNATURE (v2) or X-PAYMENT (v1) header to receive the MP3 once. To own the track instead, use purchase_track ($5.99).

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": {
      "track_id": "<track_id>",
      "session_id": "<session_id>"
    },
    "name": "play_track_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idNo
track_idYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the $0.05 USDC price, both x402 protocol versions, and precisely what is NOT produced (no file kept, no session token, no signed receipt) — which is essential given readOnlyHint=false and openWorldHint=true. It also explains the two-step payment flow and that the MP3 is delivered only once, consistent with idempotentHint=false.

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?

Front-loads the action and cost, then the ownership caveat, then the invocation mechanics, then the alternative — a logical order with no filler. It is dense but each sentence adds information; minor density cost keeps it just under top marks.

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?

With no output schema, the description compensates well by describing what is returned (play URL plus x402 payment requirements) and how to redeem it. The remaining gap is parameter-level meaning, particularly the undocumented optional agent_id.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, yet it explains none of the three parameters. track_id and session_id are only implicitly referenced by naming, and the optional agent_id parameter is never mentioned or explained; the session_id pattern constraint is left entirely to the 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?

States a specific verb and resource ('Play a single track once in a session') with scoping ('one play, no ownership') and explicitly contrasts with purchase_track. An agent can distinguish this from purchase_track/purchase_album without inspecting any schema.

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

Usage Guidelines5/5

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

Explicitly names the alternative and the condition that selects it: 'To own the track instead, use purchase_track ($5.99).' It also states the required follow-up action ('GET the URL with a PAYMENT-SIGNATURE (v2) or X-PAYMENT (v1) header') so the agent knows this tool is not self-contained.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.