Skip to main content
Glama

ScorpTech x402 Tools

Eulerian

eulerian
Read-onlyIdempotent

The Eulerian number A(n, k), the number of permutations of n with k ascents. A(4, 1) is 11, A(5, 2) is 66, and A(n, 0) is 1. k runs from 0 through n-1. n runs from 1 to 60. 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/eulerian

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

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 cover read-only, idempotent, non-destructive, open-world. The description adds what the annotations cannot: the monetary cost ($0.001 USDC per successful call via x402 on Base or Solana), an alternate HTTPS POST endpoint, and the return encoding rule that values past 15 digits come back as a decimal string. It does not describe error behavior for out-of-range k relative to n.

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?

One dense paragraph, but front-loaded with the definition and examples before constraints, output shape, and pricing. Every clause carries information; the mix of math, limits, pricing, and endpoint in a single block is slightly compressed but nothing is wasted.

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 supplies the return shape (n, k, value) and the large-value string encoding, plus cost and transport details — enough for an agent to call it confidently. Minor gaps remain around invalid k/n combinations and the exact 15-digit boundary behavior.

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 largely does: it defines k as the ascent count, gives the true domain k = 0..n-1 and n = 1..60, and illustrates with A(4,1)=11 and A(n,0)=1. It is a meaningful addition over the schema's bare numeric bounds, though it does not resolve what happens when k >= n.

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?

Opens with a precise mathematical definition: 'The Eulerian number A(n, k), the number of permutations of n with k ascents', plus concrete example values. It is clearly a single-value computation, which implicitly separates it from eulerian_row/eulerian_poly siblings, but it never names or contrasts those alternatives explicitly.

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: the worked examples and the single {n, k, value} return tell an agent this is the scalar form, not a row or polynomial. There is no explicit statement of when to prefer this over eulerian_row, eulerian_poly, or eulerian_sum, and no exclusion conditions.

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