Skip to main content
Glama

ScorpTech x402 Tools

Von Staudt

von_staudt
Read-onlyIdempotent

The von Staudt-Clausen integer. For even m at least 2, B(m) plus the sum of 1/p over primes p with p-1 dividing m is an integer. For m = 2, 4, 6, and 10 that integer is 1. An odd m is rejected. Returns JSON with: m, primes, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/von-staudt

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": {
      "m": "<m>"
    },
    "name": "von_staudt"
  }
}

Input Schema

NameRequiredDescriptionDefault
mYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered; the description usefully adds what the annotations cannot: the exact return fields (m, primes, value), the failure mode (odd m rejected), a per-call price of $0.001 USDC via x402 on Base or Solana, and an equivalent HTTPS endpoint. The one gap is that m=0 passes the schema's minimum but is neither even-and-at-least-2 nor odd, so its handling is left ambiguous.

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?

Information is front-loaded: definition first, then valid input domain, then worked examples, then return shape, then cost and transport. Every sentence is doing work, and the pricing plus endpoint line is compact rather than padded.

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 compensates by enumerating the returned JSON keys, and it discloses cost and payment protocol, which an agent must know before calling. The remaining ambiguity about m=0 and the meaning of the 'primes' field's contents is minor but real for a tool whose entire contract is one number in and one record out.

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 description coverage is 0%, so the description carries the burden for the single parameter, and it does: it constrains m to even values of at least 2 and explicitly rejects odd m, which is meaning the bare integer schema (0-40) does not convey. The only shortfall is that the schema's upper bound of 40 and the status of m=0 are not addressed in prose.

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 names the specific mathematical object (the von Staudt-Clausen integer) and defines it operationally: B(m) plus the sum of 1/p over primes p with p-1 | m. That is far more than a restatement of the title, and the scope ('for even m at least 2') tells an agent exactly what input domain is valid. It does not name any sibling function or explain how it differs from the large catalog of other number-theory tools, which keeps it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage conditions are stated concretely: m must be even and at least 2, odd m is rejected, and worked examples (2, 4, 6, 10 all yield 1) let an agent sanity-check a call. There are no explicit 'use this instead of X' exclusions, but for a single-purpose arithmetic function the applicable guidance is input validity, and that is covered.

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