Skip to main content
Glama

ScorpTech x402 Tools

Mobius

mobius
Read-onlyIdempotent

The Mobius function mu(n). It is 0 when n has a squared prime factor, and otherwise (-1)^k for k distinct primes. mu(1) is 1. n = 0 is rejected. 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/mobius

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the JSON return shape (n, value), the rejection of n = 0, the per-call price of $0.001 USDC via x402 on Base or Solana, and a mirror HTTPS endpoint.

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 return shape, edge case, and payment/endpoint logistics, with no filler sentences. It is dense but every clause carries information an agent needs.

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 correctly states the return object, and it covers the domain edge case and cost model for a single-parameter tool. The only omission is the maximum input bound and any note on computational cost near it.

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, and it does: n is the argument of mu, n = 0 is rejected, and mu(1) = 1 defines the lower boundary case. It does not mention the schema's upper bound of 1e12, which is the one remaining gap.

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?

The description names the exact mathematical object (the Mobius function mu(n)) and gives its defining formula plus the mu(1) base case, so an agent knows precisely what is computed. This clearly distinguishes it from the surrounding number-theory siblings such as abundance or aliquot.

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 mathematical definition rather than stated: the agent can infer it is the tool for evaluating mu(n), and the note that n = 0 is rejected is a useful boundary. There is no explicit when-to-use/when-not guidance or comparison to alternatives, though the HTTPS endpoint is offered as an alternate access route.

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