Skip to main content
Glama

ScorpTech x402 Tools

Collatz Length

collatz_length
Read-onlyIdempotent

The number of Collatz steps from n until 1. The length of 1 is 0, the length of 6 is 8, and the length of 27 is 111. 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-length

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), so the description's added value is in the commercial and transport details: $0.001 USDC per successful call via x402 on Base or Solana, plus an alternate HTTPS endpoint. That is genuinely useful context beyond structured fields, though output semantics ('n, value') stay minimal.

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 disambiguating examples, then return shape, then pricing/endpoint. Every sentence carries information, though the pricing and URL sentence is dense and slightly crowds the mathematical core.

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?

For a single-parameter pure-math tool with no output schema, the description covers the domain, the exact return keys, and the payment/transport model, so an agent can call it correctly and knows the cost implication. Nothing material is missing.

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 coverage is 0%, so the description has to carry the load; it states n runs from 1 to 1,000,000 and the three worked examples make clear n is the starting integer whose trajectory length is counted. The bounds largely duplicate the schema's min/max, which keeps it from a 5.

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 first sentence names the exact computation (number of Collatz steps from n to 1), and the worked examples (1→0, 6→8, 27→111) pin down the definition precisely, including the edge case. It never contrasts itself with near neighbors such as collatz_steps or collatz_step, so an agent must infer the distinction from the name alone.

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?

Usage is implied by the tight definition — you call it when you need the total stopping time for a single n — and the range constraint hints at valid inputs. There is no explicit when-to-use/when-not guidance and no mention of when the related collatz_* variants would be the better pick.

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