Skip to main content
Glama

ScorpTech x402 Tools

Pentanacci

pentanacci
Read-onlyIdempotent

The nth Pentanacci number. P0 through P3 are 0, P4 is 1, and each later term is the sum of the previous five. P(10) is 31. An optional modulus reduces the term, and zero is rejected. n runs from 0 to 4096. 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/pentanacci

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

Input Schema

NameRequiredDescriptionDefault
nYes
modNo

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 goes beyond that by disclosing value type switching ('past 15 digits the value is a decimal string'), the rejection of a zero modulus, an explicit price ($0.001 USDC per successful call via x402 on Base or Solana), and a parallel HTTPS endpoint. These are exactly the payment/auth and output-shape details an agent needs before calling, though edge-case error behavior beyond zero-modulus is not spelled out.

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 and example before constraints, return shape, and payment details, so an agent gets the core semantics first. The price and HTTPS endpoint sentences are dense but functional; the description is appropriately sized for a math tool with two undocumented parameters.

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, value') and the type-switching rule above 15 digits. Combined with the range, modulus, and payment terms, an agent can call this correctly without further inference; only the str-vs-int typing of 'mod' and precise error responses are left unstated.

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 it largely does: for 'n' it supplies the semantic meaning (nth term), the valid domain (0 to 4096), and a concrete example (P(10)=31); for 'mod' it explains that an optional modulus reduces the term and that zero is rejected. It does not explain the 600-digit string pattern or the fact that mod is passed as a string rather than an integer, which the schema alone conveys.

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?

States a specific verb+resource ('The nth Pentanacci number') and fully defines the sequence (P0-P3 are 0, P4 is 1, each later term is the sum of the previous five) with a worked example P(10)=31. It is unmistakably a term-computation tool, but it never differentiates itself from siblings like pentanacci_index, pentanacci_mod, pentanacci_step, or pentanacci_sum, even though the 'optional modulus' feature clearly overlaps with pentanacci_mod.

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?

There is no when-to-use or when-not-to-use guidance and no reference to any alternative tool. The only directional content is constraint-level ('n runs from 0 to 4096', 'zero is rejected'), which tells the agent what inputs are legal but not which tool to select among the pentanacci family.

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