Skip to main content
Glama

Sort list items

sort_list_items
Destructive

Sorts a list's items by a field or in the order of the given ids; the site shows it within seconds.

Input Schema

NameRequiredDescriptionDefault
idsNoOr item ids, first to last (the rest follow)
listYes
siteYes
sort_byNo
descendingNo

Output Schema

NameRequiredDescriptionDefault
change_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / list / description
      Removed value: -"List name"
    • removedInput schema / properties / sort_by / description
      Removed value: -"A field to sort by"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "change_id": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • removedInput schema / properties / site / description
      Removed value: -"Site name"
  3. Changed3 schema fields changed
    • removedInput schema / properties / ids / maxItems
      Removed value: -500
    • changedInput schema / properties / site / description
      Previous value: -"Site name, e.g. brave-otter-4821"New value: +"Site name"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": {},
      -  "properties": {
      -    "agent_message": {
      -      "type": "string"
      -    },
      -    "confirm_token": {
      -      "type": "string"
      -    },
      -    "error": {
      -      "description": "On failure (isError): {code, message}"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  4. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the safety bar is lower. The description adds a genuinely useful behavioral detail — the change is visible on the site within seconds — but never warns that existing ordering is overwritten or clarifies what happens when both sort_by and ids are supplied.

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?

A single front-loaded sentence with no filler; the 'site shows it within seconds' clause earns its place as timing context. Minor ambiguity in 'the site' keeps it short of perfect.

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?

Output schema exists so return values need no explanation. But with 5 parameters at 20% schema coverage, a destructive, non-idempotent tool should do more: descending direction and sort_by value domain are unaddressed, and the overwrite of prior ordering isn't stated.

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 only 20%, so the description does real work by explaining the key mutual-exclusion semantics (sort items by a field versus by given ids) and by noting the 'rest follow' behavior. However, it says nothing about 'descending', how 'sort_by' values are named, or what site/list expect, leaving several parameters undocumented in both places.

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?

States a specific verb and resource ('Sorts a list's items') and explains the two ordering modes: by a field or by explicit ids. That distinguishes it reasonably from update_list_items and add_list_items, though it never names those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: you infer you'd use it when you want a custom or field-based order. There is no explicit when-to-use versus update_list_items, no statement about what happens if ids don't cover all items (beyond 'the rest follow'), and no preconditions such as needing existing list permissions.

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