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-twin-prime

Is Twin Prime: Checks whether value is prime and value-2 or value+2 is also prime, returning a boolean 🆓 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-twin-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. Changed1 schema field changed
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  4. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the return type (boolean) and the billing model (5 free trial calls per signed wallet). It omits other behaviorally relevant facts: what happens for non-numeric or out-of-range input, how large a value is accepted, and whether errors or false are returned for invalid input.

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 compact sentence that leads with the core definition and appends the pricing note. No filler or redundancy; the only weakness is that the pricing clause is concatenated without separation, slightly blurring the primary definition.

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 boolean predicate with no output schema, the description covers the test and the return type, which is most of what an agent needs. The remaining gap is input encoding and error behavior, which matter because the lone parameter is an undescribed string.

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% and the single parameter is typed only as a bare string, so the description must compensate. It does add semantic meaning by defining value as the number under test for twin primality, but it never specifies the accepted string format (decimal only? big integers? signs? leading zeros?), which is the main ambiguity for a string-typed numeric input.

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 a specific predicate (twin prime) and spells out the exact test: value is prime and value-2 or value+2 is also prime, returning a boolean. That is far more precise than the tool name alone. It does not, however, differentiate itself from siblings such as x402-is-twin-prime-pair or x402-is-prime-pair, so an agent cannot resolve overlap from the description.

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 guidance on when to use this tool versus the many related primality siblings, and no stated preconditions or exclusions. The only non-functional context given is the free-trial quota, which is pricing information rather than 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.

Resources