Skip to main content
Glama

IDM Music

Get the payment for a licence

buy_licence
Read-onlyIdempotent

Returns the x402 payment requirements for a track licence (USDC on Base, scheme exact). Nothing is paid here: sign accepts[0] with your x402 client and repeat GET with the PAYMENT-SIGNATURE header to receive the licence and download links.

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": {
      "id": "<id>",
      "tier": "<tier>"
    },
    "name": "buy_licence"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCatalog id: a studio track (IDM-S001) or a record (IDM-0001)
tierYescreator $0.99: your own online video, social posts, streams and podcasts; commercial $4.99: also ads, brands, games, apps, broadcast and client work

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, and the description is fully consistent with them. It adds genuinely useful behavior beyond the annotations: that nothing is charged here, the currency/chain used, and the two-step handshake required to actually obtain the licence and download links.

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 front-loaded sentences with no filler: the first defines the return value, the second the operational caveat and follow-up steps. Every clause carries information an agent needs.

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 steps in to describe what comes back (payment requirements now; licence and download links after the signed GET). Only error or expiry handling is left unaddressed for a two-parameter tool.

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%, with both id and tier fully documented including the enum pricing semantics. The description adds no parameter-level meaning beyond the schema, so the baseline of 3 applies.

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 ('Returns the x402 payment requirements for a track licence') plus concrete protocol details (USDC on Base, scheme exact). It also pre-empts confusion with a purchase tool by declaring 'Nothing is paid here', which cleanly separates it from buy_sound-style tools.

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?

Gives explicit next-step instructions: sign accepts[0] with an x402 client and repeat GET <url> with the PAYMENT-SIGNATURE header. It does not name any sibling alternative, but no licence-purchase sibling appears in the catalog, so there is little left to disambiguate.

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.

Resources