Skip to main content
Glama

ScorpTech x402 Tools

Stern

stern
Read-onlyIdempotent

Stern's diatomic sequence. s(0) is 0, s(1) is 1, even terms repeat s(n/2), and an odd term is the sum of its two neighbors in the previous row. An optional modulus reduces the term; zero is rejected. 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/stern

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

Input Schema

NameRequiredDescriptionDefault
nYes
modNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered; the description adds genuinely new context — that a modulus reduces the term, that zero is rejected, that the response is JSON with n and value, and that calls cost $0.001 USDC via x402. The main weakness is ambiguity in 'zero is rejected' — it is unclear whether this refers to the modulus or to n=0, which the schema explicitly permits (minimum 0).

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?

Four short sentences, front-loaded with the mathematical definition followed by the modulus rule, return shape, and access/pricing details. Every sentence carries information, though the pricing/HTTPS sentence is somewhat operational rather than definitional.

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?

With no output schema, the description correctly states the return shape (JSON with n and value), and it covers the modulus behavior and error case. It falls short only on the string-encoded big-integer modulus and the n upper bound, minor gaps for a two-parameter pure-computation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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 full burden. It does explain what mod does (reduces the term) and that it is optional, but it never explains the string-typed mod pattern (1-200 digits, i.e. big-integer input) or the very large n upper bound of 999999999999999, leaving the two most non-obvious schema constraints undocumented.

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 gives a specific named resource plus its defining recurrence (s(0)=0, s(1)=1, even terms repeat s(n/2), odd terms sum their two previous-row neighbors), so an agent knows exactly what value is computed. It does not name or contrast any sibling sequence tool, which keeps it just short of 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 only implied: 'compute the n-th Stern term' is clear from the recurrence, and an HTTPS alternative endpoint is offered. There is no explicit when-to-use or when-not-to-use guidance relative to the many sibling sequence tools, and no statement of the cost/eligibility tradeoff beyond the price line.

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