Skip to main content
Glama

Beats

Count a play

record_play
Idempotent

Count one play of a track and put it at the top of the listener's history. Use it when playback starts; repeating the same idempotency key does not count it twice. Returns ok, or a 404 problem when no track has that id.

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>"
    },
    "name": "record_play"
  }
}

Input Schema

NameRequiredDescriptionDefault
track_idYesthe track that was played

Output Schema

NameRequiredDescriptionDefault
okYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false, and the description adds real context on top: the history-reordering effect and the dedupe rule for repeated idempotency keys. It also discloses failure behavior (404 when no track has that id). The only soft spot is that the idempotency key is never named as an input, so the mechanism stays slightly opaque.

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?

Three short sentences, front-loaded with the action and effect, then the trigger, then the idempotency and return behavior. Nothing is padded and no sentence is redundant.

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 one-parameter write tool with full schema coverage, rich annotations and an output schema, the definition covers action, effect, trigger, dedupe and failure mode. The one gap is the unexplained idempotency key, which no structured field accounts for.

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?

There is a single parameter at 100% schema description coverage, so the schema already explains track_id. The description adds a little meaning through the 404-on-unknown-id error semantics, but it introduces an idempotency key that is not in the schema, which leaves the agent unsure how that key is supplied. That roughly matches the baseline of 3.

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 description states a specific verb and resource ("Count one play of a track") plus the visible side effect (puts it at the top of the listener's history). No sibling in the list does anything similar, so an agent can route to it without opening a schema.

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?

It gives an explicit trigger: "Use it when playback starts." That is a clear usage context. It stops short of saying when not to call it (e.g. during scrubbing, replays, or offline sync), so it is not a full when/when-not/alternatives statement.

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