Skip to main content
Glama

ScorpTech x402 Tools

Divisor Count

divisor_count
Read-onlyIdempotent

The number of positive divisors of n. A prime has 2, and d(1) is 1. n = 0 is rejected. n runs up to 10^12. 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/divisor-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": "divisor_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/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 behavior, so the description is not burdened with safety disclosure. It adds real context beyond them: pricing at $0.001 USDC per successful call via x402 (Base or Solana), a direct HTTPS endpoint, and the failure mode for n = 0. It stops short of describing error responses or payment failure handling.

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 core definition and edge cases are front-loaded in the first three short sentences, followed by domain, output shape, and payment details. Nearly every sentence earns its place; the upper-bound sentence slightly duplicates the schema maximum.

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, annotation-covered, output-schema-less tool, this covers everything an agent needs: input semantics, edge cases, failure condition, return fields (n, value), cost, and a transport alternative. No meaningful gap remains.

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?

The schema has 0% description coverage, so the description must carry the meaning of n. It does so by specifying domain semantics (positive divisors, d(1) = 1, a prime yields 2) and the rejection of 0, which explains why the schema's minimum of 0 does not mean 0 is accepted. The upper bound repeats the schema maximum rather than adding to it.

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?

Opens with a precise mathematical definition ('The number of positive divisors of n'), which is a specific operation on a named resource. It is clearly distinguishable from siblings such as divisor_sum or divisor_record, which compute different arithmetic functions over the same input.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

States the operating domain (n up to 10^12, n = 0 rejected) so an agent knows when the call will fail. It gives no explicit alternatives or when-not-to-use routing, but the mathematical function is unambiguous enough that sibling selection is largely settled by the definition itself.

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