Skip to main content
Glama

ScorpTech x402 Tools

Falling

falling
Read-onlyIdempotent

The falling factorial (n)_k = n*(n-1)...(n-k+1). (5)_3 is 60, (5)_0 is 1, and (5)_6 is 0. n runs from 0 to 100000 and k runs from 0 to 512. Past 15 digits the value is a decimal string. Returns JSON with: n, k, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/falling

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>",
      "k": "<k>"
    },
    "name": "falling"
  }
}

Input Schema

NameRequiredDescriptionDefault
kYes
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses pricing ($0.001 USDC per successful call), a parallel HTTPS endpoint, the return shape {n, k, value}, and the precision behavior that results past 15 digits become decimal strings. These are exactly the operational details an agent cannot get from the structured fields.

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?

The definition is front-loaded with the formula and examples, then layers bounds, output format, and cost in dense, fact-bearing sentences. Every clause carries information, though the pricing and URL tail is slightly crammed into the same block as the semantics.

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 pure-computation tool with no output schema, the description covers inputs, bounds, degenerate cases, return shape, precision limits, and cost. Only error handling for out-of-range inputs (e.g., n > 100000) is left 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%, but the description compensates by explaining what n and k mean in the falling-factorial expression and how edge values behave (k=0 yields 1, k>n yields 0). It restates the 0-100000 and 0-512 ranges already in the schema, but the mathematical role of each parameter is meaningful added value.

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 with the formula (n)_k = n*(n-1)*...*(n-k+1) and concrete examples, so an agent knows exactly what is computed. It also states domain bounds (n 0-100000, k 0-512), leaving no ambiguity about the operation.

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 formula and the worked edge cases ((5)_0 = 1, (5)_6 = 0), which tell an agent how out-of-domain k behaves. However, there is no explicit guidance on when to choose this over similarly named alternatives such as alt_factorial or alternating_factorial, so routing must be inferred from the math itself.

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