x402-miller-rabin
Miller Rabin: Tests whether an integer value is prime using Miller-Rabin with bases through 37 🆓 5 free trial calls per signed wallet
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No |
Miller Rabin: Tests whether an integer value is prime using Miller-Rabin with bases through 37 🆓 5 free trial calls per signed wallet
| Name | Required | Description | Default |
|---|---|---|---|
| value | No |
Changes observed during successful MCP inspections.
Input schema / properties / value / descriptionRemoved value: -"Value to process"Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden, and it does add genuine behavioral detail: the deterministic base set (bases through 37) and a paywall/quota signal ('5 free trial calls per signed wallet'). It still omits the return shape (boolean vs. witness detail), behavior for very large or non-integer strings, and any performance caveat.
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?
A single front-loaded sentence stating the algorithm followed by the quota clause; nothing is padded or redundant. The trailing emoji and pricing note are boilerplate but short and informative.
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 one-parameter, no-annotation, no-output-schema tool, the description covers purpose, algorithm, and pricing, which is most of what is needed. It leaves gaps around the boolean return value, input format/limits, and sibling differentiation that an agent would need for confident selection.
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 'value' parameter, so the description must compensate. It does clarify that the input is an integer value, which is meaningful given the schema types it as a string (implying a string-encoded integer), but it gives no format, size bounds, or negative-number handling.
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?
The description names a specific verb and resource ('Tests whether an integer value is prime') plus the algorithm used (Miller-Rabin with bases through 37), which is concrete and actionable. It does not, however, distinguish itself from close siblings such as x402-is-prime, x402-prime, or x402-is-pseudoprime, so an agent cannot tell from this text alone why it should pick this tool over those.
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?
There is no guidance on when to use this versus the many sibling primality tools (x402-is-prime, x402-prime, x402-is-carmichael, x402-is-pseudoprime), nor any stated prerequisites or limits on input size. The free-trial note is commercial, not usage-directional.
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.