Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-is-fermat-prime

Is Fermat Prime: Checks whether value is prime and value minus one is a power of two 🆓 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"
  }
}

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

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden. It does disclose a commercial trait ('5 free trial calls per signed wallet'), which tells the agent that signing/wallet auth is involved and that calls are metered. It says nothing about the return shape (presumably a boolean), handling of very large inputs, or what happens when the free quota is exhausted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core definition is front-loaded and compact, which is good. However, the trailing emoji plus free-trial pricing clause is marketing text that dilutes an otherwise one-sentence technical description. Nothing is wasted on filler prose beyond that.

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 annotations and no output schema, the agent still needs the return type and the accepted input encoding, neither of which is stated. The mathematical criterion it does provide is the most important piece, so the definition is usable but leaves real gaps at the schema boundary.

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%, so the description must compensate for the single parameter, and it does not. The parameter is typed as 'string', which is non-obvious for a numeric predicate — an agent could reasonably pass a JSON number, and the description never says values must be decimal strings or whether big integers are supported. Only the loose notion of 'value being checked' is conveyed.

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 names the resource and supplies the exact mathematical criterion: 'Checks whether value is prime and value minus one is a power of two.' That is a precise verb+resource with an operational definition. It stops short of differentiating from close siblings like x402-is-fermat or x402-is-fermat-prime-num, which an agent could easily confuse with this one.

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?

There is no when-to-use or when-not-to-use guidance and no pointer to alternative predicates in the large sibling set. The mathematical definition weakly implies usage, but the agent is left to infer that x402-is-prime is the general case and this is the specialized one. The only explicit context is a trial-call pricing note, which is not usage guidance.

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.