Skip to main content
Glama

ScorpTech x402 Tools

Superfactorial

superfactorial
Read-onlyIdempotent

The superfactorial sf(n), the product of k! for k from 1 through n. sf(1) is 1, sf(3) is 12, and sf(4) is 288. n runs from 1 to 20. 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/superfactorial

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/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 still adds real operational context: the valid input range, that values beyond 15 digits are returned as a decimal string, the return keys (n, value), and per-call pricing via x402 on Base or Solana. The only omission is what happens on out-of-range input or payment failure.

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 examples, then output format, then price and endpoint — each sentence carries distinct information. Slightly dense with a run-on feel at the price/HTTPS clause, but nothing is 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?

With no output schema, the description still specifies the return shape (n, value) and the type switch at 15 digits, plus the input domain and payment model. For a single-parameter pure-computation tool, an agent has everything needed to call it 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% and the single parameter 'n' is undocumented in the schema, so the description must compensate; it does by defining n's range (1 to 20) and illustrating semantics with concrete evaluations. It does not explain whether n is 1-indexed inclusive at both ends beyond the stated range, but that is largely 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?

States the exact mathematical object ('product of k! for k from 1 through n') with three worked examples (sf(1)=1, sf(3)=12, sf(4)=288), which disambiguates it from factorial-like siblings such as alt_factorial or alternating_factorial without needing their schemas.

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 implied rather than stated: the definition makes clear it computes sf(n) for a given n, and the domain constraint n in 1..20 tells the agent when the call is valid, but there is no explicit when-to-use/when-not guidance or named alternative for related sequences.

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