Skip to main content
Glama
renzel

TRMNL API MCP

by renzel

reorder_playlist_items

DestructiveIdempotent

Reorder a device playlist by submitting all current item IDs in your desired sequence. The tool validates the complete set before applying, ensuring every item is included exactly once.

Instructions

Replace a device playlist ordering. Supply every current playlist item ID exactly once in the desired order, including hidden items. The current list is checked before writing; TRMNL also validates the complete set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
device_idYes
playlist_item_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already indicate readOnlyHint=false, destructiveHint=true, idempotentHint=true, and openWorldHint=true. The description adds value by mentioning that the current list is checked before writing and that TRMNL validates the complete set, which explains the destructive and validating nature. It does not contradict annotations, but it could add more context about side effects or concurrency, so a score of 3 is appropriate.

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?

The description is concise, consisting of two sentences. The first sentence delivers the primary purpose and critical ordering constraint, front-loading the most important information. The second sentence adds validation context. No unnecessary words, but it could benefit from slightly more detail on usage, hence a 4.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (two parameters, no output schema, destructive operation), the description provides the essential requirement for the array (complete set) and validation behavior. However, it lacks details on error handling, whether the operation is atomic, or what the response looks like. It is adequate but leaves some gaps for an agent, so a 3 is reasonable.

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 0%, so the description must compensate. The description explains the playlist_item_ids parameter by specifying that it must contain every current item ID exactly once. However, it does not explain device_id beyond the schema, and the array's ordering semantics are explained implicitly. This adds some meaning but not complete coverage.

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?

The description clearly states the verb ('Replace') and resource ('device playlist ordering'), and specifies the main action of reordering playlist items. It distinguishes itself from siblings like add/remove by focusing on ordering, though it does not explicitly name a counterpart for reordering.

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 provides clear usage guidance by specifying that every current playlist item ID must be supplied exactly once, including hidden items, and notes that the current list is checked before writing. This helps the agent know when to use it (full reordering) and what requirements must be met, but it does not explicitly state when not to use it or compare to alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.