Skip to main content
Glama

ScorpTech x402 Tools

Pythag Gen

pythag_gen
Read-onlyIdempotent

The Pythagorean triple from m > n >= 1 and scale k >= 1. a is k(m^2-n^2), b is k(2mn), and c is k(m^2+n^2). primitive is true when k is 1, m and n are coprime, and they have opposite parity. Returns JSON with: a, b, c, primitive. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/pythag-gen

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": {
      "m": "<m>",
      "n": "<n>",
      "k": "<k>"
    },
    "name": "pythag_gen"
  }
}

Input Schema

NameRequiredDescriptionDefault
kYes
mYes
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses that it returns JSON with fields a, b, c, primitive, and that each successful call costs $0.001 USDC via x402 on Base or Solana, with an equivalent HTTPS endpoint. Cost and payment rail are exactly the kind of invocation-blocking detail annotations cannot convey.

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 purpose and formulas, then return fields, then price and endpoint: no filler. It is a dense single block mixing math, output, and billing, so a slight structural split (semantics vs. cost/transport) would read faster, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 supplies the return shape (a, b, c, primitive) and the pricing/protocol needed before calling. For a pure three-integer deterministic computation, nothing further is needed to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden, and it does: m and n are the generators appearing in all three formulas, k is a multiplicative scale, and the m > n >= 1 ordering constraint is stated even though the schema only enforces minimum 1. The primitive rule ties k, coprimality, and opposite parity together, which is meaning the schema does not encode.

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 first sentence names the exact computed resource (a Pythagorean triple) and the generating inputs (m, n, k), and the following sentence spells out the closed-form formulas for a, b, and c. An agent can distinguish this generator from a checker-style sibling like pythag_check purely from the text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Preconditions are stated explicitly: m > n >= 1 and scale k >= 1, plus the exact condition under which primitive is true. It does not name when to prefer a verification sibling or what happens for invalid input (e.g. m <= n), leaving some routing to inference.

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