Skip to main content
Glama

ScorpTech x402 Tools

Lucas Disc

lucas_disc
Read-onlyIdempotent

The Lucas discriminant L(n)^2 - 5F(n)^2, which equals 4(-1)^n. F is the Fibonacci sequence with F0 = 0 and F1 = 1. For n = 5 the value is -4. n runs from 0 to 4096. Returns JSON with: n, lucas, fib, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/lucas-disc

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely non-derivable behavior: the exact return object ('n, lucas, fib, value'), the paid-call model ($0.001 USDC per successful call via x402 on Base or Solana), and an equivalent HTTPS endpoint — important operational context ahead of invocation.

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?

Information-dense but well ordered: definition first, base cases, worked example, domain, return shape, then price and endpoint. No filler sentences, though the pricing/URL tail could be split for scannability.

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 pure computation with no output schema, the description supplies the definition, domain, example, and full list of returned fields, plus cost and transport. Only minor omissions remain (numeric precision and why the value is constant ±4), which are unlikely to block a correct call.

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 meaning, and it does: n is the index into the Fibonacci/Lucas sequences with the stated base cases, and the range 0–4096 is restated alongside a worked example (n=5 → -4). The only shortfall is it does not say how large outputs are represented (e.g., big integers) or whether the value is always exactly ±4.

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 pins down exactly what is computed: 'The Lucas discriminant L(n)^2 - 5*F(n)^2, which equals 4*(-1)^n', with F defined as Fibonacci (F0=0, F1=1). That makes the resource unmistakable and distinct from siblings like lucas or jacobsthal_lucas, though it never uses an explicit verb such as 'compute' and relies on the formula to convey the action.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the valid domain ('n runs from 0 to 4096') but gives no when-to-use guidance, no exclusions, and no alternatives among the many sibling sequence tools. An agent must infer that this is the choice when the Lucas/Fibonacci discriminant specifically is wanted.

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