Skip to main content
Glama

ScorpTech x402 Tools

Mult Order

mult_order
Read-onlyIdempotent

The multiplicative order of a modulo n: the least positive k with a^k = 1 mod n. The order of 2 mod 7 is 3, and the order of 3 mod 7 is 6. a must be coprime to n. n runs from 2 to 1000000. Returns JSON with: a, n, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/mult-order

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": {
      "a": "<a>",
      "n": "<n>"
    },
    "name": "mult_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
nYes

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 cover the safe-read profile (readOnlyHint, idempotentHint, non-destructive), so the description's job is to add context — and it does: exact return fields (a, n, value), a per-call price of $0.001 USDC via x402 on Base or Solana, and an equivalent HTTPS endpoint. The only gap is that it never says how a non-coprime input is reported, which matters for a paid call.

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 front-loaded, and the examples cement the meaning in a few words before the operational details (return fields, price, endpoint) follow in a compact block. The pricing and URL sentences are dense but each carries decision-relevant information; the only near-redundancy is restating n's numeric range.

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 two-parameter, single-value math tool with no output schema, the description supplies the definition, input constraints, the exact return keys, and the cost/transport model — enough for an agent to call it correctly and budget for it. What is missing is error behavior for invalid inputs, which is the one thing an agent cannot infer from any structured field.

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 must carry the parameter meaning, and it largely does: it defines what a and n represent in the formula and adds the non-obvious coprime constraint on a that the schema's wide -1e12..1e12 range does not encode. The n range it cites merely repeats the schema's minimum/maximum, and it does not say whether negative or zero values of a have defined behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a precise mathematical operation ('the multiplicative order of a modulo n') and then defines it formally as the least positive k with a^k = 1 mod n, with two concrete examples (2 mod 7 → 3, 3 mod 7 → 6). This is specific enough that an agent can distinguish it from siblings like float_order or josephus_order without opening any schema.

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 gives a hard precondition ('a must be coprime to n') and a domain bound for n, which effectively states when the tool is valid to call. However, there is no explicit guidance on when to prefer this over a related tool, nor any statement of what happens if the coprime condition is violated, so alternatives and failure routing are left implicit.

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