Skip to main content
Glama

ScorpTech x402 Tools

Unitary Count

unitary_count
Read-onlyIdempotent

How many unitary divisors n has. The count is 2 to the number of distinct prime factors, and 1 has one unitary divisor. 7 has 2, 12 has 4, and 30 has 8. n runs from 1 to 1000000000000. 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/unitary-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": "unitary_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 readOnly, idempotent, non-destructive and open-world, so the description does not need to restate safety. What it does add is genuinely useful behavior: the accepted input range, the exact return payload (n and value), and the pricing and transport model (x402 on Base or Solana, with an HTTPS endpoint). Minor gap: no hint about latency or failure behavior when payment fails.

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 sentence order is well front-loaded: definition and formula first, then examples, then range, return shape, and pricing. Every element is short, though the triple example and the duplicated pricing/endpoint sentence add a little weight that could be folded into one line.

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 one-parameter pure computation with no output schema, the description covers the definition, valid input domain, and the shape of the returned JSON (n, value), so an agent can call it correctly. The commercial wrapping (price, protocol, endpoint) is also disclosed, leaving little for an agent to guess.

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 description coverage is 0%, so the description carries the burden for the single parameter n. It does establish that n is a positive integer in [1, 1000000000000] and shows sample inputs with expected values, which clarifies meaning. However, it mostly restates the schema's minimum and maximum rather than adding format or edge-case guidance.

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 verb and resource: it counts unitary divisors of n, and it states the formula (2^k for k distinct prime factors) plus worked examples. That pins down the mathematics in a way that separates it from siblings like biunitary_count or divisor_count, though it never names or contrasts those alternatives explicitly.

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 only implied: the examples and the stated input range suggest a single-value evaluator, but there is no explicit statement of when to use this versus the other *_count tools, and no exclusion or prerequisite guidance. For a simple deterministic calculator that is tolerable, but it is not routing 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