Skip to main content
Glama

ScorpTech x402 Tools

Kurepa

kurepa
Read-onlyIdempotent

The Kurepa function K(n), the sum of k! for k from 0 through n-1. K(1) is 1, K(2) is 2, and K(5) is 34. This is the left factorial, not the subfactorial. n runs from 1 to 200. 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/kurepa

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly/idempotent/non-destructive), it discloses the domain limit n=1..200, the precision behavior (decimal string past 15 digits), the return keys, and — critically — that each successful call costs $0.001 USDC via x402 on Base or Solana. Payment and range constraints are things an agent cannot infer from the schema or annotations.

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 definition and worked examples, with range, precision, return shape, and pricing following in a sensible order. The pricing and mirror-endpoint sentences are slightly boilerplate but still decision-relevant, so no sentence is clearly wasteful.

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?

For a single-parameter computation with no output schema, the description covers inputs, boundaries, precision quirks, return keys, cost, and an alternative transport. An agent has everything needed to call it correctly and interpret the result.

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 coverage is 0%, so the description must carry the load; it explains that n bounds the summation (k from 0 through n-1) and that n runs 1 to 200, matching the schema's minimum/maximum. The added mathematical meaning of n is genuine value, though the integer type itself is only implied.

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?

The description gives a specific mathematical definition ('the sum of k! for k from 0 through n-1') plus concrete instances (K(1)=1, K(5)=34), so the agent knows exactly what is computed. It also explicitly distinguishes this from the sibling tool subfactorial ('left factorial, not the subfactorial').

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly frames when to reach for this tool versus the sibling subfactorial, which is the most plausible confusion. It stops short of stating exclusions versus the modular variant (kurepa_mod), but no when-not conditions are misstated.

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