Skip to main content
Glama

Beats

Create a playlist

create_playlist
Idempotent

Create an empty playlist that belongs to the listener. Use it before add_to_playlist, which needs the new id. Returns ok with the playlist's id, name and cover colour, or ok false with the reason.

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

Input Schema

NameRequiredDescriptionDefault
nameYesthe playlist name, 1 to 100 characters

Output Schema

NameRequiredDescriptionDefault
okYes
errorNo
playlistNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, so the safety profile is covered. The description adds genuinely useful behavioral context by naming the downstream dependency and the ok/ok-false outcome shape, but it does not explain why a create is marked idempotent (whether a duplicate name yields the same playlist) or what causes failure beyond 'the reason'. That ambiguity around the idempotency claim is the main gap.

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?

Two short sentences, front-loaded with the action and immediately followed by the sliding constraint and the return shape. The return-value clause partly duplicates the existing output schema, which is the only wording that does not fully earn its place.

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 tool with full schema coverage, existing annotations and an output schema, the definition supplies what structured fields cannot: ownership scope, the required ordering relative to add_to_playlist, and the success/failure outcome. Nothing an agent needs in order to invoke it correctly appears to be missing.

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 required parameter and schema coverage is 100%, including the 1-100 character constraint and an example, so the baseline is 3. The description adds only 'belongs to the listener' as implicit ownership context and reveals nothing about the name parameter beyond what the schema already states.

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 ('Create an empty playlist') plus scope ('belongs to the listener'), which tells the agent this creates an owned, initially-empty container rather than adding to an existing one. The following sentence ties it to add_to_playlist, so it is distinguishable from the add/remove/get/delete playlist siblings without opening 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 Guidelines4/5

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

Gives an explicit ordering rule: call this before add_to_playlist because that tool needs the new id. That is a concrete when-to-use condition tied to a named sibling. It stops short of stating when-not to use it (e.g. that duplicates of an existing name are not rejected), so it is strong but not complete.

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