Skip to main content
Glama

ScorpTech x402 Tools

Lucky Nth

lucky_nth
Read-onlyIdempotent

The kth lucky number. The 1st is 1, the 10th is 33, and the 20th is 79. k runs from 1 to 8772, which is the count of lucky numbers through 100000. Returns JSON with: k, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/lucky-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": "lucky_nth"
  }
}

Input Schema

NameRequiredDescriptionDefault
kYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds material context beyond them: the return shape ('JSON with: k, value'), the out-of-range bound, and a paid-call requirement ($0.001 USDC per successful call via x402 on Base or Solana) plus an HTTPS endpoint. Payment/auth requirements are exactly the kind of behavior an agent needs before invoking; only error behavior for out-of-range k is left implicit.

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 with the definition and examples, then the domain, then return/payment/transport details. Every clause is load-bearing for a caller; there is no filler.

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-integer read-only math lookup with no output schema, the description supplies the return keys, the valid domain, sample values, and the payment/transport facts needed to actually make the call. Nothing an agent needs to invoke it correctly 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 defines k as a 1-based index, gives the valid domain (1–8772), explains that 8772 is the count of lucky numbers through 100000, and illustrates the mapping with three concrete k→value pairs. This meaningfully exceeds the bare min/max in the schema.

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?

States a specific resource and indexing operation ('The kth lucky number') and anchors it with three worked examples (1st=1, 10th=33, 20th=79), so an agent knows exactly what is returned. It does not explicitly distinguish itself from siblings like lucky_next, lucky_count, or lucky_twin, which is the only thing keeping it from 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 rather than stated: the worked examples and the k range '1 to 8772' show this is a bounded indexed lookup, and the 8772 ceiling hints that larger indices require a different approach. However, there is no explicit when-to-use/when-not guidance and no named alternative for getting the next term or counting.

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