Skip to main content
Glama

ScorpTech x402 Tools

Prime Triplet

prime_triplet
Read-onlyIdempotent

Whether n starts a prime triplet: n, n+2, and n+6 are prime, or n, n+4, and n+6 are prime. 5, 7, 11, and 13 do. 3 and 19 do not. n runs from 1 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/prime-triplet

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description adds value beyond them: it states the paid-call price ($0.001 USDC via x402 on Base or Solana) and gives an alternative HTTPS endpoint, both of which materially affect invocation planning. It does not describe error behavior for out-of-range n.

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?

Front-loaded definition, then two short example sentences resolving edge cases, then domain, return shape, and payment details. No sentence is filler; each adds a distinct fact an agent needs.

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 boolean predicate with annotations covering safety and an implicit output shape, this is nearly complete: input domain, return fields ('n, value'), pricing, and transport are all covered. The only gap is that 'value' is not typed (presumably boolean), so return interpretation is left slightly implicit.

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 description coverage is 0%, so the description must carry the meaning of n. It does this by defining n as the candidate first member of the triplet and restating the 1..10000 bound, which is more than the bare 'integer, min 1, max 10000' schema conveys. It stops short of saying whether out-of-range n errors or clamps.

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 gives a precise mathematical definition of the predicate (n, n+2, n+6 all prime, or n, n+4, n+6 all prime), so an agent can distinguish it from twin_prime, cousin_prime, and sexy_prime without opening any schema. The worked examples (5, 7, 11, 13 pass; 3 and 19 fail) remove ambiguity about which triplets count.

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 context is implied by the explicit input domain ('n runs from 1 to 10000') and the examples, but there is no explicit statement of when to pick this over sibling prime predicates or what happens outside that range. The agent must infer the applicability boundary rather than being routed to it.

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