Skip to main content
Glama

ScorpTech x402 Tools

Collatz Steps

collatz_steps
Read-onlyIdempotent

How many Collatz steps it takes to reach 1. 1 takes 0, 2 takes 1, 3 takes 7, 6 takes 8, 7 takes 16, and 27 takes 111. n runs from 1 to 100000. 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-steps

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

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 readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered; the description adds real context beyond that: a per-call price ($0.001 USDC via x402 on Base or Solana), the requirement of a payment-capable channel, and an alternate HTTPS endpoint. It stops short of stating failure behavior for unsuccessful or unpaid calls, which would have made it complete.

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, then range, output shape, price, and endpoint in a compact sequence. The five worked examples are dense but each is short and they efficiently nail the counting convention; one or two fewer would still serve.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers purpose, domain, output keys, cost, and transport, which is substantial for a single-parameter tool. The gap is disambiguation: with siblings named collatz_length, collatz_step, collatz_peak, and collatz_glide, an agent still has no textual basis for picking this one over them.

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 carry the parameter meaning, and it does: the valid domain of n (1 to 100000) plus several n-to-result mappings that pin down the exact counting convention (1 takes 0, 3 takes 7). It does not clarify edge behavior at the upper bound or reconcile the output field name 'value' with the 'steps' concept, so it is not fully exhaustive.

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?

States a specific computation: count of Collatz steps to reach 1, with a concrete n range (1 to 100000) and worked examples (27 takes 111). It does not distinguish this from close siblings such as collatz_length, collatz_drop, or collatz_glide, which likely compute related but different quantities, so an agent cannot route confidently between them.

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 guidance, no mention of when-not to use it, and no reference to any alternative tool. The examples imply usage for sanity-checking small inputs, but nothing tells the agent how to choose among the many collatz_* siblings or what to do outside the stated range.

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