Skip to main content
Glama

ScorpTech x402 Tools

Home Prime Len

home_prime_len
Read-onlyIdempotent

How many digits the home prime of n has. 2 has 1, 4 and 10 have 3, and 16 has 8. 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-len

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_len"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses the rejection rule ('a chain past 20 steps or 12 digits is rejected'), the accepted input domain, the return fields, and the paid x402 access model with a raw HTTPS alternative. It does not say how rejection surfaces (error vs. sentinel value), which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose comes first, followed by illustrative examples, constraints, return shape, and access details, in a compact run of sentences with no filler. Every clause (range, rejection limits, price, endpoint) carries actionable information.

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 computational tool with no output schema, the definition supplies domain bounds, chain-limit failure conditions, the returned keys, and the billing/transport model. The notable remaining gap is the absence of a definition of 'home prime' and the unspecified error behavior on rejection.

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?

With 0% schema description coverage the description has to carry the single parameter, and it does state the domain (n from 2 to 10000) — but that merely restates the schema's minimum/maximum. It adds little about what n represents beyond 'the home prime of n', and leaves 'home prime' itself undefined.

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 names the exact quantity computed — the digit count of the home prime of n — and anchors it with worked examples (2→1, 4 and 10→3, 16→8). It is clearly distinct from a tool that returns the home prime value itself or the step count, though it never names those siblings 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 reader can infer this is the length variant versus value/step variants, and the valid input range and chain cutoffs are stated. There is no explicit 'use this when you want X instead of Y' routing, and nothing about what to do when a chain is rejected.

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