x402-find-max
Find Max: Find the maximum value in an array. Provide values array; returns the largest element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | No | Values to process |
Find Max: Find the maximum value in an array. Provide values array; returns the largest element.
| Name | Required | Description | Default |
|---|---|---|---|
| values | No | Values to process |
Changes observed during successful MCP inspections.
Input schema / properties / valuesAdded value: +{
+ "description": "Values to process",
+ "type": "string"
+}Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations, so the description carries the full burden. It does disclose the input and the return (the largest element), which is reasonable for a pure computation, but it says nothing about empty-array behavior, type coercion, or output format.
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?
Two compact sentences, front-loaded with the purpose. Minor wasted space on the redundant 'Find Max:' prefix that restates the tool name.
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 simple single-parameter pure function with no output schema, the description covers input and the returned value, which is close to sufficient. It omits empty-input handling, but that is a minor gap for a tool of this complexity.
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 100% for the single parameter, so the baseline is 3. The description adds little beyond the schema, and its 'Provide values array' wording actually conflicts with the schema declaring the parameter as a string.
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?
States a specific verb and resource: 'Find the maximum value in an array.' An agent can tell what it does, but the description does not distinguish it from close siblings such as x402-find-min, x402-find-max-index, x402-nth-largest, or x402-rolling-max.
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 guidance on when to use this versus alternatives. With siblings like x402-nth-largest (k-th element), x402-find-max-index (returns index), and x402-rolling-max (windowed), the description should route the agent but offers nothing.
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.