Skip to main content
Glama

ScorpTech x402 Tools

Involution Mod

involution_mod
Read-onlyIdempotent

I(n) mod m, the involution number reduced by a positive modulus. Zero is rejected. n runs from 0 to 100. The residue is smaller than the modulus. Returns JSON with: n, mod, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/involution-mod

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>",
      "mod": "<mod>"
    },
    "name": "involution_mod"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
modYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the safety profile is covered. The description adds genuinely new facts: the input domain limits, the rejection of zero, the output field names, and a per-call price with an alternate HTTP transport. It does not describe error behavior or the cost of failed calls, leaving some gaps for a paid tool.

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 definition is dense but front-loaded: the mathematical operation comes first, followed by constraints, return shape, pricing and the HTTPS equivalent. Every sentence carries information, though the pricing and URL clauses sit awkwardly beside the mathematical specification.

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 helpfully enumerates the returned JSON fields (n, mod, value), and it covers domain limits, the zero rejection and the paid-call model. Given the tool's simplicity, little is missing beyond bignum handling and error/payment-failure semantics.

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 coverage is 0%, so the description must carry parameter meaning; it does explain that n is bounded 0-100 and that mod is a positive, non-zero modulus. However it omits the notable detail that mod is supplied as a digit string up to 600 characters (arbitrary-precision), which is the most surprising aspect of the schema and the easiest place for a caller to err.

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 exact mathematical object ('I(n) mod m, the involution number reduced by a positive modulus') and the operation, which clearly separates it from other sibling *_mod tools. It stops short of explicitly contrasting itself with the closest relatives such as involution_fixed or involution_sum, so an agent must infer the distinction from the name 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?

It conveys the operating envelope (n from 0 to 100, zero rejected, residue smaller than the modulus) and mentions an HTTPS alternative endpoint, which is useful routing context. It never states when to pick this over the many sibling modular-arithmetic tools, so usage guidance is implied rather than explicit.

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