Skip to main content
Glama

ScorpTech x402 Tools

Alt Factorial

alt_factorial
Read-onlyIdempotent

The alternating factorial af(n) = n! - (n-1)! + (n-2)! - ... ending at 1. af(1) is 1, af(3) is 5, and af(4) is 19. n runs from 1 to 200. Past 15 digits the value is a decimal string. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/alt-factorial

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and non-destructive semantics, so the description's added value is the return-type threshold ('past 15 digits the value is a decimal string') and the per-call price under x402 on Solana — genuinely useful behavior an agent cannot get from the schema. The n-range restates the schema bounds, and it does not say whether failures are still charged.

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 formula and examples, then constraints, then output format, then pricing/transport — a sensible order with no filler. The pricing and URL sentence is marketing-adjacent but still decision-relevant for a paid x402 tool.

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?

With no output schema, the description steps in with the output-format rule, so an agent knows to expect either a number or a decimal string. For a single-integer-input, single-value-output tool this is essentially complete, though the cost-on-failure and sibling relationship remain unstated.

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, and it does: n is defined as the index into the alternating-factorial sequence with range 1–200 and concrete example values that let an agent sanity-check its input. It stops short of describing edge behavior such as non-integer or out-of-range input rejection.

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 the exact recursive-formula definition, worked examples (af(1)=1, af(3)=5, af(4)=19), and the domain of n, so an agent knows precisely what is computed. It does not, however, distinguish itself from the near-identically named sibling alternating_factorial (and alt_sum/alternating_sum), which is a real disambiguation gap in this catalog.

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 by the mathematical definition and the documented range, but there is no explicit 'use this when' or 'prefer X instead' guidance, and the obvious sibling alternating_factorial is never mentioned. The HTTPS endpoint note is a transport alternative, not a tool-selection guideline.

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