Skip to main content
Glama

ScorpTech x402 Tools

Narayana

narayana
Read-onlyIdempotent

The Narayana number N(n,k). N(5,3) is 20. A k outside 1..n yields 0. n runs from 1 to 60 and k from 0 to 60. Past 15 digits the value is a decimal string. Returns JSON with: n, k, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/narayana

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>",
      "k": "<k>"
    },
    "name": "narayana"
  }
}

Input Schema

NameRequiredDescriptionDefault
kYes
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety needs no restating. The description adds what annotations cannot: a paid x402 endpoint at $0.001 USDC per *successful* call on Base or Solana, the edge-case rule that k outside 1..n yields 0, and the representation switch to a decimal string past 15 digits. It does not say what happens on a failed or unpaid call, which is the main remaining gap.

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?

It is dense and front-loaded: definition first, then example, then edge cases, then bounds, then return shape, then cost and transport. Every sentence carries information. Minor cost from the URL and pricing sentence being interleaved with the mathematical contract rather than separated.

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?

There is no output schema, and the description nonetheless specifies the returned JSON keys (n, k, value) and the string-versus-number representation rule for large results. Combined with documented input bounds, edge-case behavior, and the payment requirement, an agent has everything needed to call this correctly and to anticipate the response shape.

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 description coverage is 0%, so the description must carry parameter meaning, and it largely does: n runs 1..60, k runs 0..60, and out-of-range k returns 0 rather than an error. This is real added semantics beyond the bare integer bounds. It leaves one ambiguity: the schema permits k=0 while the text says k outside 1..n yields 0, so the value at k=0 is not explicitly resolved.

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 the exact mathematical object (Narayana number N(n,k)) and anchors it with a worked example ('N(5,3) is 20'), so the agent knows precisely what is computed. What it does not do is differentiate from the very similar siblings narayana_row and narayana_check, so the agent cannot tell from this text alone which one to pick for a single value versus a row or a validation.

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: requesting one (n,k) pair returns one value. There is no statement of when to prefer this over narayana_row (a whole row of k-values) or narayana_check, and no exclusions. The only routing information offered is transport-level (the same tool is available over HTTPS POST), not tool-selection guidance.

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