Skip to main content
Glama

ScorpTech x402 Tools

Cantor Count

cantor_count
Read-onlyIdempotent

How many integers from 0 through n have only the digits 0 and 1 in base 3. The count through 0 is 1, through 2 is 2, and through 8 is 4. n runs from 0 to 999999999999999. 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/cantor-count

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": "cantor_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, open-world behavior, so the description's added value is operational: the 0..999999999999999 domain, the returned JSON fields, a per-call price of $0.001 USDC via x402 on Base or Solana, and an equivalent HTTPS endpoint. The paid-call disclosure is exactly the kind of context an agent needs before invoking. It stops short of saying what happens on failed/payment-failed calls.

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 is front-loaded, followed by examples, the domain, the return shape, and payment details — every element is functional. Slightly dense with pricing/endpoint text, but that earns its place for a paid tool.

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?

With no output schema, the description supplies the return fields (n, value), the input domain, examples, and payment/transport details, which is close to complete for a one-parameter counting tool. It could be marginally clearer that 'value' is the count itself rather than something else.

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: n is the inclusive upper bound of the range starting at 0, illustrated by the examples through 0, 2, and 8, plus the domain statement. The numeric bound is also in the schema, but the inclusive-range semantics are clarified only in prose.

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 mathematical definition: counts integers from 0 through n whose base-3 digits are only 0 and 1, with worked examples (through 0 is 1, through 2 is 2, through 8 is 4). That is far more specific than a restatement of the name. It does not explicitly contrast with siblings like cantor_bit, but the sequence definition itself is distinguishing.

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 worked examples imply the inclusive-range semantics and help confirm the agent is calling the right tool, but there is no explicit when-to-use/when-not-to-use guidance or named alternative. Usage is implied rather than stated.

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