Skip to main content
Glama

ScorpTech x402 Tools

Collatz Step

collatz_step
Read-onlyIdempotent

One Collatz step. An even n is halved and an odd n becomes 3n+1. 6 goes to 3, and 1 goes to 4. 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-step

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

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 readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. Beyond that, the description adds genuinely useful behavior: a paid per-call model ($0.001 USDC via x402 on Base or Solana), an equivalent HTTPS endpoint, and the returned fields. That payment and transport context is exactly the kind of thing annotations cannot convey.

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?

Short, front-loaded sentences: operation and rule first, examples next, constraints and return shape after, then pricing and endpoint. Every sentence carries information an agent needs; nothing is filler.

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 one-parameter, no-output-schema tool this is close to complete: rule, examples, domain, return fields, cost, and an alternate transport are all present. The only soft spot is that the returned 'value' is not explicitly glossed as the resulting term, though the rule makes it inferable.

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 parameter meaning, and it does: it defines what n means mathematically (the halving / 3n+1 rule) with worked examples. The range 1..1000000 merely restates the schema's minimum/maximum, but the semantic explanation of n is the real contribution.

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 operation (a single Collatz step) and spells out the transformation rule: even n halved, odd n becomes 3n+1. The concrete examples (6→3, 1→4) make the semantics unmistakable. It does not, however, differentiate itself from siblings like collatz_next or collatz_steps, so an agent must infer the boundary.

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 never says when to pick this tool over collatz_next, collatz_steps, collatz_length, or the other collatz_* siblings. Usage is only implied by the definition of one step. An agent comparing siblings gets no routing 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