Skip to main content
Glama

ScorpTech x402 Tools

Home Prime Steps

home_prime_steps
Read-onlyIdempotent

How many factor-concatenations turn n into a prime. 2 takes 0, 6 and 12 take 1, 4 takes 2, and 10 and 16 take 4. A chain past 20 steps or 12 digits is rejected. n runs from 2 to 10000. 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/home-prime-steps

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/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 rejection rule for chains exceeding 20 steps or 12 digits, names the return fields (n, value), states the price ($0.001 USDC via x402 on Base or Solana), and gives a direct HTTPS endpoint. Cost and payment protocol are exactly the kind of behavior an agent cannot infer from annotations.

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 computation and examples, followed by constraints, return shape, and access details in a logical order. It is dense but nearly every sentence carries information; the pricing and endpoint sentence is long but operationally necessary.

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, no-output-schema tool this is nearly complete: range, failure condition, return fields, cost, and endpoint are all covered. The only soft spot is that 'value' is not described as the step count, leaving the agent to infer which JSON field holds the answer.

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 burden. It partially compensates by defining n as the chain's starting integer, restating the 2–10000 range, and illustrating what different n values yield, though it doesn't explain the edge-case semantics of the chain construction itself (e.g., how factor concatenation is ordered).

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 description states exactly what is computed — 'How many factor-concatenations turn n into a prime' — which distinguishes the step count from related tools like home_prime (the prime itself) and home_prime_len. The concrete worked examples (2 takes 0, 4 takes 2, 10 takes 4) remove any ambiguity about what 'steps' means for this tool.

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 strongly implied by the precise purpose and the stated domain (n from 2 to 10000), but the description never explicitly says when to prefer this over home_prime or home_prime_len. It does give a hard operational boundary — chains past 20 steps or 12 digits are rejected — which helps an agent predict failures but is not the same as when-to-use 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