x402-heap-sort
Heap Sort: Sorts a numeric array in ascending order using a heap sort 🆓 5 free trial calls per signed wallet
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | No |
Heap Sort: Sorts a numeric array in ascending order using a heap sort 🆓 5 free trial calls per signed wallet
| Name | Required | Description | Default |
|---|---|---|---|
| values | No |
Changes observed during successful MCP inspections.
Input schema / properties / values / descriptionRemoved value: -"Values to process"Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations, so the description carries the full burden. It discloses sort order and algorithm, and mentions a payment/trial constraint ('5 free trial calls per signed wallet'), but says nothing about required auth, error behavior, or how the string-typed 'values' input is actually accepted.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
One front-loaded sentence states purpose and order, followed by a short free-trial note. Little waste, though the emoji/promo tail is marketing rather than agent-relevant content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a trivial single-parameter utility with no output schema, the description is roughly sufficient on what it does, but it omits the input string format that an agent needs to call it correctly and adds no behavioral or output context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% for the single 'values' parameter, which the schema types only as a string with no format documentation. The description tells you it is a numeric array, but not whether input is comma-separated, JSON, or space-delimited, so it does not compensate for the coverage gap on the one input that matters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clear verb (sorts) plus resource (numeric array) plus direction (ascending) and algorithm (heap sort). It does not differentiate itself from the many sibling sorters (bubble-sort, quick-sort, merge-sort, selection-sort, insertion-sort, sort-numbers), differing only by algorithm name, which for typical callers is not a meaningful distinction.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No when-to-use, when-not, or alternative guidance is given. Against a large cluster of equivalent sorting siblings, the description provides no basis for choosing this tool over another, leaving selection entirely to guessing.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.