Skip to main content
Glama

ScorpTech x402 Tools

Jacobsthal Lucas

jacobsthal_lucas
Read-onlyIdempotent

The nth Jacobsthal-Lucas number. L0 is 2, L1 is 1, and later terms use the Jacobsthal recurrence. An optional modulus reduces the term, and zero is rejected. n runs from 0 to 8192. Past 15 digits the value is a decimal string. 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/jacobsthal-lucas

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

Input Schema

NameRequiredDescriptionDefault
nYes
modNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: modulus reduction behavior, rejection of zero, the 15-digit threshold where output becomes a decimal string, the JSON return shape, and the per-call price and HTTPS endpoint. That is unusually complete disclosure for a compute tool.

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?

The definition is front-loaded with the mathematical contract, then constraints, then output and pricing. It is dense but nearly every clause carries information; the pricing/endpoint sentence is useful but slightly crowds the core spec.

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 no output schema, the description supplies the return shape (n, value) and the string-vs-number threshold, plus error and range behavior. Nothing an agent needs to invoke this 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 load, and it does: it explains that n is the term index bounded to 0-8192 with zero rejected, and that mod is an optional modulus that reduces the term. It does not explain the mod string format or what happens when mod is omitted, leaving a small gap.

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 names a specific mathematical object and pins it down with base cases (L0=2, L1=1) and the recurrence, which is enough to separate it from the sibling 'jacobsthal' sequence. It stops short of explicitly contrasting with that sibling, so it is clear but not fully differentiated.

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 hard constraints (n from 0 to 8192, zero rejected) but gives no guidance on when to pick this over jacobsthal, jacobsthal_sum, or lucas. The agent must infer the choice from the sequence definition 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