Skip to main content
Glama

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. Price: $0.001 USDC per successful call (x402, 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

A3.9/5.0
Behavior4/5

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

Annotations already mark this read-only, idempotent, non-destructive, so safety is covered. The description adds genuinely useful behavior beyond that: the 15-digit threshold after which values become decimal strings, the paid $0.001 USDC per successful call x402/Solana model, and an equivalent HTTPS endpoint.

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, then examples, then domain bounds, then output format and billing details. Three dense sentences with essentially no filler; only the pricing/endpoint clause slightly crowds the mathematical definition.

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 and no per-parameter descriptions, the description supplies everything an agent needs: exact semantics, edge-case examples, valid input ranges, and the return-type switch to decimal strings past 15 digits, plus cost and transport details. Nothing needed to call it correctly is missing.

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 parameter meaning, and it does: n ranges 0-100000, k ranges 0-512, k is the number of descending factors, and the (5)_0=1 and (5)_6=0 examples implicitly document the k=0 and k>n edge cases. It could be slightly clearer by stating the k>n zero rule explicitly rather than only by example.

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?

States exactly what is computed with the formula (n)_k = n*(n-1)*...*(n-k+1) and concrete examples, so an agent knows this is the falling factorial rather than a generic factorial. It does not name or distinguish itself from the nearest sibling 'rising' (rising factorial), leaving that differentiation to the name.

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?

The description establishes the mathematical semantics but gives no explicit when-to-use or when-not-to-use guidance and never points to alternatives like rising, alt_factorial, or double_factorial despite a dense sibling list. Usage is inferable only from the formula.

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