Skip to main content
Glama

ScorpTech x402 Tools

Moser Count

moser_count
Read-onlyIdempotent

How many Moser-de Bruijn numbers are at most n, counting 0. Through 0 there is 1, through 1 there are 2, through 5 there are 4, through 16 there are 5, and through 64 there are 9. n runs from 0 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/moser-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": "moser_count"
  }
}

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 read-only, idempotent, non-destructive and open-world, so the safety profile is settled. The description earns credit by adding behavior the annotations do not carry: the return payload is JSON with fields n and value, and each successful call is metered at $0.001 USDC via x402 on Base or Solana, with an equivalent HTTPS endpoint given. The only gap is that it does not say what happens on a failed 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.

Conciseness4/5

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

Purpose is front-loaded in the first sentence, and the example ladder is compact and immediately verifiable. The pricing and mirror-endpoint sentences are useful rather than padding. Minor cost: the four worked examples sit between the core definition and the range constraint, slightly interrupting the flow.

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 single-parameter pure function with no output schema, the definition supplies purpose, domain, sample outputs, response keys, cost and a fallback transport — enough to call it correctly without guessing. The only shortfall is that the 'value' field's meaning (the count itself) must be inferred from the framing rather than stated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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 parameter load. It does explain that n is the inclusive upper bound and restates the 0 to 1000000 range, which is genuine meaning beyond a bare integer field. However, the boundary semantics are only implied by the examples ('through 0 there is 1') and the link between n and the returned value field is never spelled out.

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 verb and resource: 'How many Moser-de Bruijn numbers are at most n, counting 0.' An agent can tell this is the counting function rather than the membership/index/summation siblings. It stops short of naming any sibling explicitly, so differentiation comes from inference rather than statement.

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 worked examples (through 5 there are 4, through 64 there are 9) and the stated domain n in [0, 1000000], which lets an agent sanity-check a call. There is no explicit guidance on when to pick this over moser, moser_check, or moser_sum, and no stated exclusions or preconditions beyond the payment note.

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