Skip to main content
Glama

ScorpTech x402 Tools

Next Prime

next_prime
Read-onlyIdempotent

The least prime greater than or equal to n. 0, 1, and 2 all give 2. 14 gives 17. 10000000 gives 10000019. 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/next-prime

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

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?

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses the return shape ('Returns JSON with: n, value'), a per-call price of $0.001 USDC via x402 on Base or Solana, and an equivalent HTTPS endpoint. Payment cost and protocol are significant behavioral facts an agent could not infer from annotations or schema.

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 with the core semantics and examples, then appends return format, price, and endpoint. Every sentence is useful, though the range is stated twice (description and schema) and the raw HTTPS URL is somewhat extraneous for MCP invocation.

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 pure function with no output schema, the definition covers semantics, domain boundaries, edge cases, return fields, and cost. Nothing an agent needs to invoke it correctly or predict the response 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%, so the description must carry the parameter meaning, and it does: it restates the 0..10000000 range and, more importantly, defines the boundary semantics with examples (0, 1, and 2 all give 2). The only gap is that it repeats the min/max already in the schema rather than adding further detail about integer handling.

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 first sentence gives a precise mathematical definition ('least prime greater than or equal to n'), and the worked examples (0/1/2 -> 2, 14 -> 17, 10000000 -> 10000019) remove any ambiguity about edge cases. An agent can distinguish this plain 'next prime' from siblings like chen_prime or factorial_prime purely from the definition.

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 definition plus the explicit domain 'n runs from 0 to 10000000', which tells the agent when the tool is valid. However, it never says when to prefer a sibling such as chen_prime or balanced_prime, nor does it state any exclusions, so routing guidance beyond the name is absent.

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