Skip to main content
Glama

Universal Data — x402 + MPP Payment Setup

api_music_midi_beat

Read-onlyIdempotent

Generate a downloadable-standard base64 MIDI file of an original drum pattern (kick/snare/hat steps). No copyrighted song or audio playback. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

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": {
      "bpm": "<bpm>",
      "bars": "<bars>",
      "kick_steps": "<kick_steps>",
      "snare_steps": "<snare_steps>",
      "hat_steps": "<hat_steps>"
    },
    "name": "api_music_midi_beat"
  }
}

Input Schema

NameRequiredDescriptionDefault
bpmYesTempo BPM from 30 to 300
barsYesPattern bars 1 to 16
hat_stepsYes0–15 comma-separated 16th-note positions
kick_stepsYes0–15 comma-separated 16th-note positions
snare_stepsYes0–15 comma-separated 16th-note positions

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), yet the description still adds real context: the output is a downloadable-standard base64 MIDI file, there is a per-call cost of 0.01 USDC on Base x402, and a customer-owned credential path via the X-Provider-Key header. That is material operational detail the agent cannot get from the schema or 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?

Three compact sentences, front-loaded with what is produced, followed by the copyright constraint and then the payment/auth note. Nothing is repetitive, though the payment sentence crams two distinct topics (cost and credential header) together.

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?

For a five-parameter generator with no output schema, the description supplies the missing return-value information (base64 MIDI), the cost model, and the auth header. What remains unstated is comparatively minor, e.g. whether the result is deterministic across calls or how to decode the payload.

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 description coverage is 100%, so every parameter (bpm range, bars range, 0–15 sixteenth-note step lists) is already documented. The description only echoes the kick/snare/hat step concept, adding no format, constraint, or example meaning beyond the schema.

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: generate a base64 MIDI file of an original drum pattern built from kick/snare/hat steps. The 'original drum pattern / no copyrighted song' phrasing scopes it away from music-search or metadata siblings, though it never names a particular sibling tool to disambiguate against.

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?

Implies usage (produce a drum pattern as MIDI) and rules out copyrighted material, but gives no explicit when-to-use / when-not guidance versus related siblings such as the metronome grid or arrangement tools. The agent must infer selection from the resource name alone.

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