Skip to main content
Glama

Beats

Favorite or unfavorite

toggle_favorite
Idempotent

Like a track, or remove the like when the listener already likes it. Use it when somebody says they enjoy a track; get_track shows the present state. 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": {
      "id": "<id>"
    },
    "name": "toggle_favorite"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesthe track to like or unlike

Output Schema

NameRequiredDescriptionDefault
okYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior1/5

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

The description defines state-dependent toggle semantics ('remove the like when the listener already likes it'), meaning repeated identical calls flip the state back and forth. That directly contradicts the annotation idempotentHint=true, which promises that repeated calls with the same arguments have no additional effect. The useful disclosure about error returns (404 for an unknown id) cannot offset an outright inconsistency with the declared 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 short sentences, front-loaded with the operation itself followed by usage and then return behavior; nothing is padding. The middle clause is slightly loose ('somebody says they enjoy a track') in a way that interacts with the toggle behavior without resolving it, which keeps it from a 5.

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 annotation coverage and an output schema, this covers what it does, when to reach for it, how to inspect prior state, and the failure case. The one gap is guidance on the destructive-direction side effect (accidentally un-favoriting an already-liked track), which matters for a state-flipping mutation.

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% and the single 'id' parameter is already documented as the track to like or unlike, so the schema carries the parameter semantics. The description adds one genuinely new detail with parameter implications: an id matching no track yields a 404 problem response. That is a modest addition, so the 3 baseline is appropriate.

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?

It names a concrete operation on a concrete resource (like/unlike a track) and resolves the main ambiguity of the name 'toggle' by spelling out both directions. It also distinguishes itself from get_track, which only reports state. It stops short of a full 5 because no sibling that performs a non-toggle favorite write is addressed, but the operation itself is unambiguous.

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 somebody says they enjoy a track') and points to get_track as the way to inspect the present state before acting. What is missing is an explicit warning about the failure mode the trigger implies: if the listener already likes the track, applying this tool removes the like, so the guidance should say to check state first rather than merely mentioning that get_track can show it.

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