Skip to main content
Glama

radix_sort

Sort non-negative integers with a configurable radix base (2-256) to produce ordered numeric arrays.

Instructions

Sort non-negative integers using radix sort with configurable base.

Input Schema

NameRequiredDescriptionDefault
baseNoRadix base (default 10, range 2-256)
valuesYesNon-negative integers to sort

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.11

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It mentions the input constraint (non-negative integers) and configurable base, but does not disclose stability, error behavior on invalid inputs, return format, or complexity. This is minimal behavioral context for a tool with zero annotation coverage.

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?

A single well-formed sentence that front-loads the operation and includes the only real configurable aspect. No wasted words.

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

Completeness2/5

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

There is no output schema and no annotations, so the description should explain the return value, error handling, and any behavioral caveats. It does not, leaving the agent to guess what a call returns or how failures are reported.

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%, so both parameters are already documented in the schema, including the base default and range. The description adds no meaning beyond what the schema provides; baseline 3 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?

States a specific verb and resource (sort non-negative integers) plus the algorithm (radix sort), making the operation unambiguous. It does not differentiate from sibling sorting tools like counting_sort or bucket_sort, so it stops short of a 5.

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

Usage Guidelines2/5

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

Provides no when-to-use guidance, no prerequisites, and no comparison to alternative sorting tools. The agent knows what it does but not when to choose it over the many sibling sort implementations.

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

Deploy Server

Other Tools