Skip to main content
Glama

Measure BPM and key

analyze_track
Read-only

Measure BPM and musical key (with Camelot code) from the audio of a SoundCloud track, using a 30-second window starting at position ms. BPM is corrected for half/double-time errors using the track's genre. First call takes ~5–15 s; repeat calls are cached for 30 days. Limited to 6 calls per minute per client. Preview snippets (≤60 s) are rejected.

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": {
      "url": "<url>"
    },
    "name": "analyze_track"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesSoundCloud track URL
positionNoStart of the analysis window in ms; use it for long mixes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses latency (~5–15 s on first call), caching semantics (repeat calls cached 30 days), a rate limit (6 calls per minute per client), and an input constraint that will cause errors (previews ≤60 s rejected). It also explains a non-obvious internal behavior: half/double-time BPM correction based on genre. This is exactly the operational context annotations cannot convey.

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?

Four tightly packed sentences, front-loaded with the core capability, then cost/latency, then limits. Every sentence carries information an agent needs before calling: what it returns, how long it takes, caching, rate limits, and rejection criteria.

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?

There is no output schema, and the description compensates by naming the return content (BPM plus key with Camelot code). For a two-parameter read-only analysis tool, latency, caching, rate limiting, and the preview-rejection failure mode are all disclosed, leaving no material gap.

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 both `url` and `position` are already documented, and the description largely restates the schema's own wording about `position` being the window start for long mixes. It adds the useful detail that the window is 30 seconds, which clarifies how `position` maps to analyzed audio, but no new format or edge-case guidance for `url` beyond the schema pattern.

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?

The first sentence gives a specific verb ('Measure'), specific resources ('BPM and musical key with Camelot code'), the input medium ('audio of a SoundCloud track'), and the analysis window ('30-second window starting at position ms'). This is unmistakable against siblings like search_soundcloud or resolve_track, which operate on metadata rather than audio analysis.

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?

The description supplies clear context for use (analyzing a track's tempo/key, with position for long mixes) and an explicit exclusion: 'Preview snippets (≤60 s) are rejected.' It does not name a fallback tool for cases where no full-length audio exists, so the guidance stops short of full routing instructions.

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