Skip to main content
Glama

ScorpTech x402 Tools

Pell Equation

pell_equation
Read-onlyIdempotent

The nth solution of the Pell equation x^2 - 2y^2 = (-1)^n. x is half the companion Pell-Lucas number and y is the Pell number. A supplied norm must equal that sign. n runs from 0 to 8192. Returns JSON with: n, x, y, norm. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/pell-equation

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": "pell_equation"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
normNo

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 declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false. The description adds important context beyond that: the valid n range, norm validation rule, exact JSON return keys, price ($0.001 USDC per successful call), x402 payment context, and HTTPS endpoint. It stops short of describing failure or charging behavior when norm does not match.

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 with the mathematical purpose, followed by constraints, return fields, and payment/endpoint details. Every sentence carries useful information for invocation; the endpoint sentence is lengthy but justified for a paid x402 tool.

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?

There is no output schema, but the description enumerates the returned keys (n, x, y, norm). Annotations cover the safety profile, while the description adds range limits, norm validation, pricing, and endpoint details. Only error behavior on invalid n or mismatched norm is left unstated.

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 compensate. It defines n as the solution index bounded by 0 and 8192, and norm as an optional supplied value that must equal (-1)^n. Both parameters gain meaning beyond the bare JSON types, though the required/optional distinction is only implied.

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?

States exactly which solution is computed: the nth solution of x^2 - 2y^2 = (-1)^n, with x and y tied to companion Pell-Lucas and Pell numbers. This clearly distinguishes it from siblings such as pell, neg_pell, pell_lucas, and equation_solve.

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?

Provides hard constraints (n from 0 to 8192; supplied norm must equal (-1)^n), which implies when the tool applies. However, it never explicitly says when to choose this over pell, neg_pell, or equation_solve, and gives no exclusions or alternative-routing guidance.

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