Skip to main content
Glama

ScorpTech x402 Tools

Mersenne

mersenne
Read-onlyIdempotent

The Mersenne number 2^n - 1. Exponent 1 gives 1, 2 gives 3, and 31 gives 2147483647. n runs from 1 to 128. Past 15 digits the value is a decimal string. Returns JSON with: n, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/mersenne

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": "mersenne"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description adds genuinely new behavior: the 1–128 domain boundary, the type switch to a decimal string past 15 digits (a precision trap an agent must know about), the return shape {n, value}, the per-call price, and an equivalent HTTPS endpoint. This is exactly the kind of cost and output-shape disclosure annotations cannot carry.

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

Conciseness5/5

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

The definition is front-loaded with the mathematical identity, then examples, then domain, then return typing, then commercial/transport details. Each clause carries distinct information; no sentence is redundant with another.

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?

With no output schema, the description takes on the burden of describing the return value and does so ({n, value}) plus the large-value string caveat. For a single-parameter pure-computation tool, nothing an agent needs in order to call it correctly is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it does: it establishes that n is the exponent in 2^n - 1, restates the 1–128 range, and gives three worked examples that pin down the mapping. There is essentially nothing ambiguous left about the single parameter.

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 defines the exact computation (the Mersenne number 2^n - 1) and anchors it with concrete examples (n=1→1, n=2→3, n=31→2147483647), so an agent knows precisely what value comes back. It never explicitly distinguishes itself from the sibling mersenne_prime (which presumably tests primality), leaving that distinction to inference.

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: the agent can infer it should call this when it needs the raw Mersenne value for a given exponent. There is no explicit when-to-use/when-not guidance, no mention of when to prefer mersenne_prime, and no statement of prerequisites beyond the billing note.

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