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-fermat-prime-num

Is Fermat Prime Num: Checks whether value is a Fermat prime, i.e. a prime of the form 2^(2^k)+1: 3, 5, 17, 257, 65537 (value 2 is not one) 🆓 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-is-fermat-prime-num"
  }
}

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. Changed1 schema field changed
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  4. First observed

TDQS

B3/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 does disclose the pricing model (5 free trial calls per signed wallet), which is genuinely useful, but says nothing about the return type, whether the operation is read-only, or how very large values are handled even though Fermat primes beyond 65537 are not known to exist.

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?

A single tight sentence front-loads the definition, then adds examples, the boundary case (value 2 is not one), and the trial-call note. Every clause carries information; only the emoji/pricing tail is mildly noisy relative to the mathematical core.

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?

For a one-parameter predicate with no output schema and no annotations, the definition covers the concept well but leaves the response shape and input format unstated. An agent knows what the tool tests but not exactly what it gets back or how to format the string argument.

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 coverage is 0% for the single 'value' parameter, so the description must compensate. The listed example values (3, 5, 17, 257, 65537) hint at acceptable input magnitudes, but nothing states that value is a string, whether non-integers or negatives are allowed, or how to pass arbitrarily large integers.

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?

The description gives a specific verb ('Checks whether') and a precisely defined mathematical predicate, including the closed form 2^(2^k)+1 and the enumerated members (3, 5, 17, 257, 65537). The definition itself separates it from siblings like x402-is-prime or x402-is-mersenne-prime, though it never names an alternative explicitly.

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 nature of a boolean predicate tool — call it when you need to test Fermat-primality. There is no explicit when-to-use, when-not-to-use, or guidance pointing at the many sibling prime-check tools, so the agent must infer routing from the math definition 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