Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as minia2a — hosted x402 API marketplace (HTTP). If you published it, claim ownership there.

x402-is-prime

Is Prime: Check whether a number is prime. Provide n or number; returns true for primes (2, 3, 5...) and false for composite or numbers <2. 🆓 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": {
      "input": "<input>"
    },
    "name": "x402-is-prime"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNo
inputYes
valueNo
numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "input"
      +]
  2. Changed4 schema fields changed
    • removedInput schema / properties / input / description
      Removed value: -"Input to process"
    • removedInput schema / properties / n / description
      Removed value: -"N to process"
    • removedInput schema / properties / number / description
      Removed value: -"Number to process"
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  3. Changed1 schema field changed
    • addedInput schema / properties / input
      Added value: +{
      +  "description": "Input to process",
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • addedInput schema / properties / number
      Added value: +{
      +  "description": "Number to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  5. First observed

TDQS

B3/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden. It does disclose useful behavior beyond the schema: return values are booleans, 2/3/5 are true, composites and values below 2 are false, and there is a metered '5 free trial calls per signed wallet' quota. It omits what happens after the quota is exhausted (error shape, payment requirement) and gives no indication of performance or input size limits.

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?

Three compact sentences, front-loaded with the operation and immediately followed by argument and return details. The emoji pricing note is tacked on but short. Nothing is padded, though the parameter sentence is arguably too terse for its job.

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

Completeness3/5

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

No output schema means the description must convey the return contract, which it does adequately (boolean true/false with examples). But for a tool with four undocumented, ambiguously aliased parameters and no annotations, the description falls short on input guidance and on what failure modes (quota exceeded, invalid input) look like. Adequate to attempt a call, not adequate to call correctly in every case.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four string parameters, so the description must fully compensate and does not. It names only two of the four accepted keys ('n or number') and says nothing about 'value', and critically omits the schema's actual required property 'input' — an agent following the description literally could supply 'n' and fail required-field validation. No format or range guidance (e.g. integer-only strings, very large n) is provided.

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: 'Check whether a number is prime.' An agent can immediately tell what computation is performed. It offers no differentiation from the many sibling prime tests (fermat, mersenne, safe, twin), so an agent still cannot confidently choose it over x402-is-fermat-prime on name evidence alone.

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?

No when-to-use or when-not-to-use guidance is given, and no alternative tool is named despite a dense cluster of prime-related siblings. The only directional sentence ('Provide n or number') concerns argument entry rather than tool selection, so the agent is left to infer applicability from the title alone.

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.

Resources