Skip to main content
Glama

ScorpTech x402 Tools

Jacobsthal

jacobsthal
Read-onlyIdempotent

The nth Jacobsthal number. J0 is 0, J1 is 1, and each later term is the previous one plus twice the one before that. 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

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

Input Schema

NameRequiredDescriptionDefault
nYes
modNo

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, so the safety profile is covered; the description adds genuinely new behavior — values past 15 digits come back as a decimal string rather than a number, zero is rejected, and calls are paid ($0.001 USDC via x402) with an HTTPS alternative. The one gap is that it does not state what error or response shape a rejected zero produces.

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, then constraints, then output format, then commercial details; every sentence carries information. It is dense rather than padded, though the pricing/endpoint sentence could be separated more cleanly from the computational spec.

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?

There is no output schema, so the description must explain returns — it does (JSON with n and value, string above 15 digits) — and it covers the input bounds and payment requirement. It stops short of describing error behavior for invalid n or oversized modulus, which is the remaining gap for a tool with a paid, network-facing 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?

With 0% schema description coverage, the description carries the burden and mostly does: it restates n's range and adds the non-obvious rule that zero is rejected, and it explains that mod "reduces the term" — semantics the schema's digit-pattern alone does not convey. It omits why mod is a string type or its 600-digit bound, leaving a small gap.

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 nth Jacobsthal number" names a specific computed resource, and the recurrence (J0=0, J1=1, each term = previous + 2× the one before) fully pins down which sequence is meant, distinguishing it from sibling sequences like jacobsthal_lucas without needing to open a schema.

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?

It gives usable preconditions: n from 0 to 8192, zero rejected, modulus optional. But it offers no explicit routing guidance among the many jacobsthal_* siblings (add, power, sum, lucas), so an agent must infer selection 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