Skip to main content
Glama

ScorpTech x402 Tools

Collatz Peak

collatz_peak
Read-onlyIdempotent

The largest value on the Collatz trajectory from n through 1, including n. The peak of 1 is 1, the peak of 6 is 16, and the peak of 27 is 9232. n runs from 1 to 1000000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/collatz-peak

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this as a read-only, idempotent, non-destructive operation. The description adds useful context beyond that: it is an x402-paid API costing $0.001 USDC per successful call and is also available over HTTPS. It does not describe error behavior or response type, but the examples clarify the computed output.

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?

The definition is front-loaded with the core computation, then examples, domain, pricing, and endpoint. Every sentence is useful and there is no wasted text.

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 simple one-parameter mathematical tool with no output schema, the description defines the result, gives examples, and states the input domain and payment model. It is nearly complete, though it could explicitly state the return type or error behavior for out-of-range input.

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?

With zero schema description coverage, the description compensates by saying n is the starting integer and runs from 1 to 1,000,000. The examples further ground what n means. It repeats the schema's numeric range, but for a single-parameter tool it gives enough semantic context.

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 states a specific mathematical operation: the largest value on the Collatz trajectory from n through 1, including n. The examples make the computation unambiguous. However, it does not distinguish this tool from the very close sibling `collatz_max`, which likely computes a similar or identical value.

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

Usage Guidelines2/5

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

The description gives the valid range for n and examples, but it provides no explicit guidance about when to use this tool instead of related Collatz siblings such as `collatz_max`, `collatz_length`, or `collatz_steps`. The HTTPS endpoint is an access alternative, not tool-selection 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