Skip to main content
Glama

ScorpTech x402 Tools

Perrin

perrin
Read-onlyIdempotent

The nth Perrin number. R0 is 3, R1 is 0, R2 is 2, and later terms use the Padovan 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/perrin

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

Input Schema

NameRequiredDescriptionDefault
nYes
modNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive and openWorld, so the description adds real value on top: the $0.001 x402 payment requirement, the rejection behavior for zero, and the output-type switch to a decimal string past 15 digits. The only weakness is that "zero is rejected" is ambiguous about whether it refers to the modulus or the index.

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?

Dense and front-loaded: definition and seeds first, then modulus behavior, domain, return type, and finally cost/endpoint. Every sentence carries information, though the n range and 8192 limit are restated from the schema.

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 supplies the return shape (JSON with n and value) plus the large-value string caveat, error behavior, domain, pricing, and a REST fallback. For a two-parameter pure-computation tool this is nearly complete; only the zero-rejection wording remains under-specified.

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 burden and largely does: it explains that mod is an optional modulus that reduces the term, and it restates the n domain with the sequence seed values that give those indices meaning. It does not explain the 600-digit bound on mod or clarify the zero-rejection ambiguity, leaving small gaps.

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 nth Perrin number" with explicit seeds R0=3, R1=0, R2=2 and the Padovan recurrence makes the computed resource unambiguous. It hints at the relationship to the padovan sibling by naming the recurrence, but never explicitly tells the agent when to pick this over padovan, so it stops short of full sibling differentiation.

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 input domain (n from 0 to 8192, optional modulus) and by the pricing/endpoint note, but there is no explicit when-to-use statement, no exclusion such as "not for Padovan numbers – use padovan", and no mention of when to prefer perrin_divide.

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