Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-is-pseudoprime

Is Pseudoprime: Checks whether value is prime or a Fermat pseudoprime to base a (default 2); rejects values above 2^53-1 🆓 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-pseudoprime"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNo
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does add real behavioral context: it discloses the default base of 2, the hard input ceiling of 2^53-1 that causes rejection, and a per-wallet free-call quota. It still omits the return shape (presumably a boolean) and what happens for invalid or out-of-range base values.

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 semantics are front-loaded in one sentence, which is good, but the redundant 'Is Pseudoprime:' title echo and the emoji-laden promotional tail about free trial calls add noise around otherwise tight content.

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

Completeness2/5

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

For a tool with zero annotation coverage, zero schema descriptions, and no output schema, the definition leaves too much unstated: the boolean return, the string/number encoding of the 2^53-1 constraint, and base validation are all undefined. The range and quota notes are helpful but not enough for an undocumented 2-parameter math predicate.

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?

Schema coverage is 0% for both parameters, so the description must compensate and only partly does. It clarifies the meaning of 'base a' as the Fermat witness base and supplies the default of 2, but never explains why 'value' and 'base' are typed as strings (large-integer encoding) or what range the base accepts.

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 and a precisely defined predicate: it checks whether a value is prime OR a Fermat pseudoprime to a given base. That definition is substantive and separates it in meaning from plain primality or other number-property siblings, though no sibling is named to route between 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?

Usage is only implied by the mathematical definition of a Fermat pseudoprime — an agent must infer that this tool is for base-relative pseudoprime testing rather than for determining primality outright. There is no explicit when-to-use, when-not, or named alternative such as a pure primality or Carmichael check.

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.