Skip to main content
Glama

ScorpTech x402 Tools

Kurepa Mod

kurepa_mod
Read-onlyIdempotent

K(n) mod m for the Kurepa function, the sum of k! from 0 through n-1. The modulus is a positive decimal integer, and zero is rejected. n runs from 1 to 200. The residue is smaller than the modulus. Returns JSON with: n, mod, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/kurepa-mod

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>",
      "mod": "<mod>"
    },
    "name": "kurepa_mod"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
modYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive and open-world, so the bar is lower; the description still adds material behavior: a $0.001 USDC per-call x402 charge, the Base/Solana payment rails, an equivalent HTTPS endpoint, and the exact returned fields (n, mod, value). It also discloses the residue-size invariant and that zero modulus is rejected, none of which is in the annotations. It does not describe error behavior or payment-failure modes, so a 4 rather than 5.

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?

Front-loaded with the mathematical definition, then constraints, then return shape, then cost and endpoint; every sentence carries information. Slightly dense run-on phrasing ('The modulus is a positive decimal integer, and zero is rejected') but nothing is wasted.

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

Completeness4/5

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

For a two-parameter, no-output-schema math tool, the description supplies the return fields, input bounds, rejection rule, cost, and an alternate transport, which is nearly everything an agent needs. Missing only guidance on what happens on payment or validation failure.

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

Parameters4/5

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

Schema description coverage is 0%, so the description carries the full burden, and it does: mod is characterized as a positive decimal integer with zero rejected (matching the digit-string pattern), and n is bounded 1 to 200. It does not explain why mod is transmitted as a string of up to 600 digits (arbitrary-precision modulus), leaving a small gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb-and-resource operation: 'K(n) mod m for the Kurepa function, the sum of k! from 0 through n-1,' which pins down both the mathematical object and the returned residue. An agent can distinguish this from the sibling kurepa (modulus-free value) and other *_mod tools without opening the schema.

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?

Gives hard operating constraints (mod must be a positive decimal integer, zero rejected, n from 1 to 200) that tell the agent when a call is valid, but never names an alternative such as kurepa for the full value or mod_pow for general modular exponentiation. Usage is implied by the constraints rather than stated as when-to-use 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