Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

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

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "value": "<value>"
    },
    "name": "x402-miller-rabin"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "value"
      +]
  2. Changed1 schema field changed
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  3. First observed

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the algorithm and base set plus a pricing/quota signal ('5 free trial calls per signed wallet', implying wallet authentication), which is useful, but says nothing about the response shape (boolean vs. witness), behavior on non-numeric or negative input, or what happens after the trial calls are exhausted.

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?

One compact sentence front-loads the operation and algorithm, with the pricing note trailing. Nothing is redundant, though the emoji-plus-quota clause is marketing rather than invocation guidance.

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

Completeness4/5

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

For a single-parameter, no-output-schema tool, the definition covers what the tool computes and roughly how, plus a quota caveat. The main residual gap is the return value contract (presumably a boolean primality verdict) and input bounds, which an agent would still have to discover by calling it.

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?

One required parameter with 0% schema description coverage; the schema only says type string. The description clarifies the semantic ('an integer value'), which partially compensates for the string-typed schema, but it does not explain the expected string encoding for large integers or any size limits.

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 ('Tests whether an integer value is prime') and even names the algorithm and base set, so the operation is unambiguous. It does not explicitly contrast with sibling math tools, but the algorithm name alone makes it distinguishable.

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 implied by the algorithmic detail (Miller-Rabin with bases through 37 is deterministic over a large range), but the description never states when to prefer this over other primality or factoring approaches, nor any input bounds. The only explicit guidance is commercial: 5 free trial calls per signed wallet.

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.