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. Price: $0.001 USDC per successful call (x402, 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

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, so the safety profile is covered. The description adds genuinely new context the annotations cannot convey: the $0.001 USDC per-call cost via x402 on Solana, plus an equivalent HTTPS endpoint. That pricing/payment disclosure is valuable, though nothing is said about failure behavior or what happens on an out-of-domain or unpaid call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The rule statement is front-loaded and the examples earn their place by disambiguating the transformation. But the description is a run-on of four comma-spliced sentences, and the pricing and endpoint details—while useful—read as appended boilerplate rather than integrated guidance.

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?

For a one-parameter pure function the description is close to sufficient: the input domain, the transformation, and outputs via example are all present, and no output schema is needed since the return is an integer by construction. Still, it leaves the collatz_next overlap unresolved and says nothing about paid-call failure modes, which matters for a metered endpoint.

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 burden, and it does: it defines n as the operand of the step and restates the valid range 1-1000000 in prose. The worked examples (6 goes to 3, 1 goes to 4) pin down the mapping precisely, including the odd branch, which the schema cannot express.

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?

Names the exact transformation ("An even n is halved and an odd n becomes 3n+1"), which fully disambiguates the operation from multi-step siblings like collatz_steps or collatz_length. However, it never addresses collatz_next, which is almost certainly the same operation, so the sibling differentiation is incomplete.

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?

The phrase "One Collatz step" implies this is for a single iteration rather than a full trajectory, which is mildly useful routing information. But there is no explicit when-to-use statement, no mention of collatz_next or collatz_steps as alternatives, and no prerequisite 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