Skip to main content
Glama

ScorpTech x402 Tools

Eulerian Sum

eulerian_sum
Read-onlyIdempotent

The sum of Eulerian numbers A(n, k) for k from lo through hi. The whole row sums to n!. A(4, 0) through A(4, 1) is 12. lo must not pass hi, and hi must be an ascent of n. n runs from 1 to 60. Returns JSON with: n, lo, hi, count, 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-sum

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>",
      "lo": "<lo>",
      "hi": "<hi>"
    },
    "name": "eulerian_sum"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
hiYes
loYes

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 cover the safety profile (readOnly, idempotent, non-destructive), but the description adds genuinely non-structural facts: a $0.001 USDC per-successful-call charge via x402 on Base or Solana, plus the equivalent HTTPS endpoint. It also discloses the returned fields (n, lo, hi, count, value) and the precondition that hi must be an ascent of n. This is well beyond what the annotations convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is front-loaded with purpose, then example, then constraints, then return shape, then commercial terms - each sentence carries distinct information. Nothing is padding, and the slight redundancy of restating n's range is negligible against the density of unique facts.

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 three-required-parameter computational tool with no output schema, the description supplies the mathematical meaning, the validity preconditions, the returned field names, and the pricing/payment model. The remaining hole is that it never describes what happens on an invalid call (e.g., hi not an ascent) or the magnitude of the value field, though arguably the return listing covers the essentials.

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: it defines lo/hi as an inclusive index range, requires lo <= hi, constrains hi to be an ascent of n, and repeats the 1..60 bound on n while fixing the example A(4,0)..A(4,1). The only gap is that 'ascent of n' is left unexplained and the relationship of lo/hi to the printed example is inferential.

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 a specific operation – the sum of Eulerian numbers A(n,k) over the index range lo..hi – which separates it from a whole-row sibling like eulerian_row. It also explains the mathematical relationship ('The whole row sums to n!') and gives a worked example (A(4,0) through A(4,1) = 12). It stops short of naming a specific sibling for contrast, but the range semantics are unambiguous.

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 constraints ('lo must not pass hi', 'hi must be an ascent of n', n from 1 to 60) implicitly define valid usage, and the worked example illustrates the intended call shape. However, nothing tells the agent when to choose this over eulerian_row or eulerian, and the validity rule is asserted without explanation of what 'ascent of n' means operationally.

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