Skip to main content
Glama

ScorpTech x402 Tools

Stirling2 Rec

stirling2_rec
Read-onlyIdempotent

The Stirling recurrence S(n,k) = k*S(n-1,k) + S(n-1,k-1). term is the first summand and diag is the second. n and k run from 1 to 80. Past 15 digits a part is a decimal string. Returns JSON with: n, k, term, diag, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/stirling2-rec

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

Input Schema

NameRequiredDescriptionDefault
kYes
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 declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds genuinely non-structured behavior: the result serialization rule (parts become decimal strings past 15 digits), the exact JSON keys returned, and a per-call price of $0.001 USDC via x402 on Base or Solana. It does not cover failure modes or what happens when payment fails, but the added context is substantial.

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 the naming convention, then bounds, output shape, and pricing — a sensible order for a math endpoint. The '1 to 80' sentence duplicates schema constraints, and the pricing/URL sentence is dense, but neither is padded filler.

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?

There is no output schema, and the description compensates by enumerating the returned fields (n, k, term, diag, value) and the big-integer representation rule — exactly what an agent needs to parse the response. Combined with the formula and the payment requirement, nothing essential for a correct call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description is the only prose source, and it contributes little beyond restating the 1–80 bounds already encoded as minimum/maximum in the schema. It never explains what n and k denote combinatorially (set size vs. block count) or how they enter the recurrence, which would be genuinely additive meaning.

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 states the exact object of computation — the Stirling second-kind recurrence S(n,k) = k*S(n-1,k) + S(n-1,k-1) — and names the two intermediate components (term = first summand, diag = second). That is far more specific than a title restatement. It stops short of explicitly contrasting itself with siblings like stirling2 or stirling2_row, so an agent must infer that this tool is the one returning the recurrence parts rather than the value alone.

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 only implied: because the tool returns term and diag as well as value, an agent can deduce it is for inspecting the recurrence decomposition rather than a plain S(n,k) lookup. There is no explicit 'use this instead of X when...' statement and no stated prerequisites beyond the n,k bounds. The HTTPS/x402 alternative listed is a transport variant, not a sibling routing rule.

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