Skip to main content
Glama

ScorpTech x402 Tools

Lucky Next

lucky_next
Read-onlyIdempotent

The least lucky number greater than or equal to n. 2 gives 3, 20 gives 21, and 49 gives 49. n runs from 1 to 99987, the last lucky number through 100000. 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/lucky-next

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the bar is lower. The description adds genuinely non-structured context: cost of $0.001 USDC per successful call via x402 on Base or Solana, plus an alternate HTTPS endpoint, which materially affects invocation decisions. It stops short of describing out-of-range or 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 and examples, followed by range, return shape, price, and transport in a compact sequence with no filler. Minor density in the trailing payment/endpoint clause but it is all functional 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 single-parameter deterministic lookup with annotations and no output schema, the description covers semantics, domain, return fields (n, value), cost, and transport. It is essentially complete; the only omissions are error behavior and a formal definition of lucky numbers, which the examples largely substitute for.

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 carries the burden and does so: it defines n as the lower bound with an inclusive domain of 1 to 99987, notes 99987 is the last lucky number through 100000, and illustrates the mapping with examples. Only the failure mode for an out-of-range n is left unstated.

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 a precise operation on a specific resource: "the least lucky number greater than or equal to n," with three worked examples (2→3, 20→21, 49→49). This cleanly separates it from sibling tools like lucky_nth (ordinal lookup) or lucky_twin (pair search) without requiring the schema to be opened.

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 of the operation and the stated input domain of 1 to 99987, but there is no explicit statement of when to prefer this over lucky_nth or lucky, nor what to do outside the range. An agent must infer the choice from the semantics alone.

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