Skip to main content
Glama

ScorpTech x402 Tools

Apery Mod

apery_mod
Read-onlyIdempotent

A(n) modulo m. A(1) mod 2 is 1, A(5) mod 10 is 5, and A(8) mod 1000 is 425. n runs from 0 to 11 and m runs from 1 to 1000000. Returns JSON with: n, m, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/apery-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>",
      "m": "<m>"
    },
    "name": "apery_mod"
  }
}

Input Schema

NameRequiredDescriptionDefault
mYes
nYes

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 declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds value beyond that: exact return shape (n, m, value), the per-call price of $0.001 USDC via x402 on Base or Solana, and an equivalent HTTPS endpoint. It does not mention error behavior for out-of-range inputs, but that is minor for a pure computation.

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?

Front-loaded with the operation, then examples, then constraints, then output and payment details — every sentence is load-bearing. No filler, no restatement of the title.

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 correctly supplies the return fields (n, m, value), and it covers domain limits, pricing, and an alternate transport. The only real gap is that the underlying sequence 'A' is never identified as Apery numbers, which an agent unfamiliar with the domain would have to infer.

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 meaning of n and m. It does so by defining both through the formula and by giving three concrete (n, m) -> value mappings, which let an agent verify its understanding before calling; the stated ranges duplicate the schema's min/max rather than adding to them.

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 computation, 'A(n) modulo m', with worked examples (A(1) mod 2 = 1, A(8) mod 1000 = 425) that pin down exactly what is returned. It is clearly a modular reduction of the Apery sequence, distinct from siblings like apery or apery_sum, though it never explicitly names a sibling or states what 'A' denotes.

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 only implied by the name and formula; there is no explicit statement of when to pick this over apery, apery_term, or other *_mod siblings. The domain constraints (n 0-11, m 1-1000000) do implicitly tell an agent when the tool is applicable, which is better than nothing.

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