Skip to main content
Glama

ScorpTech x402 Tools

Wilson Quotient

wilson_quotient
Read-onlyIdempotent

The Wilson quotient ((p-1)! + 1) / p for a prime p. The quotient of 5 is 5, of 7 is 103, and of 13 is 36846277. A composite is rejected. p runs from 2 to 100. This checks the given prime. Returns JSON with: p, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/wilson-quotient

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": {
      "p": "<p>"
    },
    "name": "wilson_quotient"
  }
}

Input Schema

NameRequiredDescriptionDefault
pYes

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 read-only, idempotent, non-destructive profile, and the description adds real context on top: rejection of composite inputs, the 2-100 domain, the JSON return shape, and a per-call payment requirement via x402 on Base or Solana. It stops short of describing how a rejected composite is reported or whether payment is charged on failure.

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?

The formula and examples are front-loaded, followed by constraints, return fields, and pricing/endpoint. Slightly list-like, but every sentence carries information an agent needs before calling.

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?

For a single-parameter computational tool with no output schema, the definition covers the domain, the failure mode, the exact return keys (p, value), and the payment/endpoint requirements. Nothing essential to correct invocation 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 carries the burden, and it does: p must be a prime in 2..100 and composites are rejected — the primality requirement is meaning the schema cannot express. The numeric bounds merely restate the schema's minimum/maximum.

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 gives a specific verb-and-resource: it computes the Wilson quotient ((p-1)!+1)/p for a prime p, and even supplies worked examples (5, 103, 36846277). That formula distinguishes it in substance from a sibling like wilson_prime, though it never names or explicitly contrasts an alternative.

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 implied rather than stated: p runs 2 to 100, composites are rejected, and each successful call costs $0.001 USDC. There is no explicit statement of when to pick this tool over a related primality/Wilson sibling.

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