Skip to main content
Glama

Prime Nth

prime_nth
Read-onlyIdempotent

The kth prime. The 1st is 2, the 10th is 29, the 100th is 541, and the 664579th is 9999991. k runs from 1 to 664579. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/prime-nth

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": {
      "k": "<k>"
    },
    "name": "prime_nth"
  }
}

Input Schema

NameRequiredDescriptionDefault
kYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, openWorld, so safety is covered. The description goes beyond them with cost information ('$0.001 USDC per successful call'), the x402/Solana payment mechanism, and an alternate HTTPS endpoint — material facts an agent needs before spending money. It does not describe latency or failure/payment-failure behavior.

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, then examples, then bounds, then cost/endpoint — a sensible order with no filler. The pricing and URL sentences are slightly vendor-flavored but genuinely actionable, so they earn their place.

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?

With one required parameter, no output schema, and rich annotations, the description supplies everything needed: what is returned (by example), the valid input domain, and the cost/transport. Nothing an agent needs before invoking 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 carries the burden for the single parameter, and it does: it names k, states the accepted range (1 to 664579), and anchors the meaning with four concrete k→prime mappings. The only gap is that the range is also in the schema's min/max, so that part is partly redundant.

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 first sentence gives a precise verb+resource ('the kth prime') and the worked examples (1st=2, 10th=29, 664579th=9999991) pin down the exact 1-indexed interpretation, which is the only real ambiguity for this operation. It does not explicitly distinguish itself from inverse siblings such as prime_count or next_prime/prev_prime, so it falls short of a 5.

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 and by the stated domain of k (1 to 664579), so an agent knows the call is valid only for indices in that range. However, there is no statement of when to prefer this over lookups like prime_check, next_prime, or prime_count, and no when-not 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