Skip to main content
Glama

ScorpTech x402 Tools

Collatz Drop

collatz_drop
Read-onlyIdempotent

How many Collatz steps until the value is strictly below the start. 1 is already at the bottom and takes 0. 2 takes 1, 6 takes 1, 3 takes 6, and 7 takes 11. 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-drop

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the bar is lower. The description does add genuinely useful behavior beyond that: it is a paid endpoint at $0.001 USDC per successful call over x402, with an equivalent HTTPS POST URL — cost and payment context an agent cannot get from annotations. Return shape is only named as 'n, value' without explaining what 'value' holds.

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?

The definition leads, examples follow to disambiguate it, and commercial/transport details sit at the end where they belong. Every element earns its place, though four examples is arguably one or two more than needed and the pricing sentence is dense.

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-parameter, no-output-schema tool, this covers the definition, valid input range, worked outputs, payment requirement, and an alternative transport. The one real gap is the unexplained return field name 'value', which an agent would have to guess is the step count.

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?

With one parameter and 0% schema description coverage, the description has to carry the meaning of n. It does so partly: the range 1–100000 is stated (though this merely duplicates schema minimum/maximum) and the examples make clear that n is the Collatz starting value. It never explicitly defines n's semantic role, but the examples make it inferable.

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 gives a precise computational definition — count Collatz steps until the value is strictly below the start — and anchors it with four worked examples (2→1, 6→1, 3→6, 7→11), which removes ambiguity about the stopping condition. It does not, however, distinguish this from near-neighbors like collatz_steps, collatz_length, or collatz_glide, so an agent must infer the difference from the definition 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 only implied: the examples and the stated input range tell an agent what question this answers, which is often enough to pick it over siblings. There is no explicit when-to-use/when-not statement and no named alternative for the closely related step-counting tools.

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