Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-is-mersenne-prime

Is Mersenne Prime: Tests whether value is prime and value plus 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-mersenne-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

B3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add genuine behavioral context beyond the name: a paid x402 endpoint with '5 free trial calls per signed wallet', which tells the agent auth/payment constraints. It omits the return shape (presumably boolean) and what happens when calls exceed the free trial.

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 definition is a single front-loaded sentence: the test comes first, then the pricing note. Nothing is padded, though the emoji and trial-call clause are tacked on rather than integrated.

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 single-parameter predicate with no output schema, the core semantics are present, but two things an agent needs are missing: the string encoding expected for 'value' and the boolean return convention. The free-trial note is a useful addition that partially offsets these gaps.

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?

There is one required parameter with 0% schema description coverage, so the description must compensate and largely does not. It implies 'value' is a number to be tested, but the schema types it as a string with no stated format — an agent cannot tell whether to pass decimal digits, a hex string, or an expression, which matters greatly for large Mersenne candidates.

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 predicate with its mathematical definition: 'Tests whether value is prime and value plus one is a power of two.' An agent knows exactly what property is being evaluated, which distinguishes it from generic primality checks. It does not, however, distinguish itself from the sibling 'x402-is-mersenne', whose name suggests the same test.

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 reference to any alternative. The sibling list contains 'x402-is-mersenne' plus many other prime predicates (fermat, lucas, safe, twin), and the description gives no basis for choosing among them beyond the inline mathematical definition.

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.