Skip to main content
Glama

ScorpTech x402 Tools

Prime Count

prime_count
Read-onlyIdempotent

pi(n), the number of primes less than or equal to n. pi(0) and pi(1) are 0, pi(10) is 4, pi(100) is 25, and pi(10000000) is 664579. n runs from 0 to 10000000. 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/prime-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": "prime_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover readOnly, idempotent, non-destructive and open-world, yet the description adds material context they cannot: a hard domain cap at 10,000,000, the exact output shape (JSON with n, value), a paid x402 pricing model at $0.001 USDC per successful call, and an alternate HTTPS endpoint. The payment requirement is a significant behavioral trait an agent must know before calling.

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?

Front-loaded with the definition and examples before operational details (bounds, return shape, price, endpoint), with no filler. The trailing URL and pricing line is long but earns its place for an agent that must handle payment and transport.

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, no-output-schema tool, the description covers input domain, edge cases, exact return fields, cost, and transport. There is nothing an agent needs in order to call it correctly that is missing.

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% and the schema only carries raw min/max, so the description must supply meaning; it does by defining n as inclusive upper bound of the prime-counting range and illustrating edge cases (pi(0)=pi(1)=0). It largely restates the same 0..10,000,000 bounds as the schema, so it does not add quite everything the parameter could convey.

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?

States the mathematical function precisely (pi(n), count of primes <= n) and anchors it with concrete values (pi(10)=4, pi(100)=25, pi(10000000)=664579). This is unambiguous enough to separate it from siblings like prime_nth or prime_check without opening the schema.

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: an agent can infer it answers 'how many primes up to n', but there is no explicit when-to-use, when-not, or pointer to alternatives such as prime_nth or next_prime.

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