Skip to main content
Glama

ScorpTech x402 Tools

Collatz Odd

collatz_odd
Read-onlyIdempotent

How many odd terms appear before the Collatz path reaches 1. The final 1 is not counted. 1 and 2 give 0, 3 and 6 give 2, and 7 gives 5. 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-odd

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely new context beyond them: the output shape (JSON with n and value), a cost of $0.001 USDC per successful call via x402 on Base or Solana, and a parallel HTTPS endpoint. That pricing/payment and dual-transport disclosure is exactly the kind of behavior an agent needs before invoking.

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 metric definition and its edge case, then examples, then bounds, then return shape and payment details. Dense but every clause carries information; the only mild bloat is restating the 1-100000 range that the schema already enforces.

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, no-output-schema computational tool, the definition covers what is computed, the exclusion rule, worked examples, input bounds, the return object's fields, and the payment/transport model. Nothing an agent needs in order to call it correctly 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 must carry the meaning of the single parameter, and it does: n is the Collatz starting integer bounded 1 to 100000, illustrated by five n-to-result mappings that convey both input domain and output convention. The range merely restates the schema's minimum/maximum, but the examples add semantics the schema does not.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb-and-resource: counting odd terms in the Collatz trajectory before hitting 1, with the explicit exclusion that the final 1 is not counted. The worked examples (1 and 2 give 0, 3 and 6 give 2, 7 gives 5) pin the metric down so an agent can distinguish it from sibling measures like collatz_length or collatz_steps without opening any schema.

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 domain restriction ('n runs from 1 to 100000') and by the examples, but there is no explicit when-to-use or when-not-to-use guidance. No sibling alternative is named, so an agent must infer from the metric definition alone when this beats collatz_length or collatz_parity.

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