Skip to main content
Glama

ScorpTech x402 Tools

Fermat Prime

fermat_prime
Read-onlyIdempotent

Whether the Fermat number 2^(2^n) + 1 is prime. n from 0 through 4 gives a prime. n=5 does not: 4294967297 = 641*6700417. n runs from 0 to 5. This checks the given n. Returns JSON with: n, fermat, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/fermat-prime

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": {
      "n": "<n>"
    },
    "name": "fermat_prime"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the read-only/idempotent safety profile, and the description adds genuinely new operational context: a per-call price, the x402 payment rails, and an alternate HTTPS endpoint. Its only shortfall is that the returned JSON keys (n, fermat, value) are listed but not explained.

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?

The core statement is front-loaded in the first clause, with the worked n=5 counterexample as supporting evidence. The pricing and endpoint sentences are dense but each carries information an agent would need to invoke the tool successfully.

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

Completeness5/5

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

For a single-parameter, bounded, read-only predicate with no output schema, the definition supplies the domain, a sample result, the response field names, cost, and an alternate transport. Nothing needed to call it correctly appears to be missing.

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

Parameters4/5

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

Schema coverage is 0%, so the description must carry the parameter, and it does: it explains the meaning of n, its 0-to-5 domain, and even the known factorization at n=5. The meaning added goes well beyond the bare minimum/maximum in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific mathematical predicate: whether the Fermat number 2^(2^n) + 1 is prime, plus the exact domain of n. That resource is precise enough to separate it from sequence siblings like mersenne_prime or prime_check without naming them.

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?

It states the legal range (n from 0 to 5) and that it 'checks the given n', which implicitly tells the agent when the tool applies. There is no explicit routing advice, e.g. that arbitrary-integer primality belongs to prime_check or that the raw value belongs to fermat_number.

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