Skip to main content
Glama

ScorpTech x402 Tools

Collatz Next

collatz_next
Read-onlyIdempotent

One Collatz step. An even number is halved and an odd number goes to 3n+1. 1 goes to 4, 2 goes to 1, 3 goes to 10, and 6 goes to 3. n runs from 1 to 1000000. 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/collatz-next

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_next"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds genuinely new behavioral context: a per-call price of $0.001 USDC via x402 on Base or Solana, an alternate HTTPS endpoint, and the return payload shape (n, value). It stops short of covering error behavior for out-of-range input or any rate/latency characteristics, which keeps it below 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 core definition, followed by illustrative examples, then the domain bound and the return/pricing details; nothing is padded or redundant. The final sentence is dense (price + protocol + chain + HTTPS endpoint) but each element serves an agent deciding whether to call the 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?

For a single-param computational tool with no output schema, the description supplies the operation, the input domain, worked examples, the output field names, and the payment requirement — enough to call it correctly. The remaining gap is what happens for invalid or out-of-range n and whether the payment applies on failed calls.

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

Parameters3/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 parameter meaning, and it does explain that n is the Collatz input with the worked examples (1→4, 2→1, 3→10, 6→3) anchoring the mapping. However, the stated range 1 to 1000000 merely restates the schema's minimum/maximum, and no additional format, edge-case, or type nuance is added.

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 precise verb+resource in the first sentence and then fully specifies the mapping ('An even number is halved and an odd number goes to 3n+1'), so an agent knows exactly what computation happens. It does not, however, distinguish itself from the sibling names collatz_step and collatz_steps, which sound functionally identical, leaving ambiguity about which to pick.

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?

There is no when-to-use or when-not-to-use guidance and no explicit routing to alternatives, despite sibling tools like collatz_step and collatz_steps that appear to overlap. The only usage context is the domain constraint 'n runs from 1 to 1000000' and the worked examples, which clarify behavior but not selection.

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