Skip to main content
Glama

ScorpTech x402 Tools

Apery

apery
Read-onlyIdempotent

The Apery number A(n), the sum of C(n,k)^2 * C(n+k,k)^2 for k from 0 to n. A(0) is 1, A(1) is 5, A(2) is 73, A(3) is 1445, and A(5) is 819005. n runs from 0 to 11. Returns JSON with: 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/apery

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely useful non-schema context: the response shape ('Returns JSON with: n, value'), a per-call price of $0.001 USDC via x402, and an equivalent HTTPS endpoint. It does not cover error behavior for an out-of-range n, which keeps it short of a 5.

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?

Front-loaded with the defining formula, then anchors, domain, return shape, pricing, and endpoint — each sentence carries distinct information with no filler. It is dense but well ordered; the example values could be trimmed slightly without loss.

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 single-parameter pure function with no output schema, the description supplies the formula, valid domain, expected return keys, and even cost and transport details, which is close to everything an agent needs. Only failure behavior for invalid n is left unaddressed.

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% for the single parameter n, so the description must carry the meaning, and it does: n is the index into the Apéry sequence, bounded 0–11, with worked values (A(0)=1, A(1)=5, A(2)=73, A(3)=1445, A(5)=819005) that let an agent sanity-check results. The range restates the schema's min/max rather than adding to it, but the semantic definition of n is new information.

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 and gives its defining formula, 'the sum of C(n,k)^2 * C(n+k,k)^2 for k from 0 to n', so an agent knows precisely what is computed. It does not explicitly contrast with siblings like apery_mod or apery_sum, but the base-sequence definition is unambiguous enough to separate it in practice.

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 constraints are implied rather than stated: the valid domain is given ('n runs from 0 to 11') along with concrete sample values, which tells an agent when the call will succeed. There is no explicit when-to-use/when-not-to-use guidance or routing to alternative tools for related sequences.

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