Skip to main content
Glama

ScorpTech x402 Tools

Pdi

pdi
Read-onlyIdempotent

Whether n equals the sum of its digits each raised to k. 153 with k=3, 1634 with k=4, and 4150 with k=5 do. 4150 with k=4 does not, and neither does 2 with k=3. n runs from 0 to 999999999999999 and k runs from 1 to 15. 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/pdi

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

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 cover read-only, non-destructive, idempotent, and open-world behavior. The description adds useful behavioral context beyond annotations: pricing per successful call, payment protocol, alternate HTTPS endpoint, and the JSON fields returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is front-loaded with the core predicate, followed by compact examples, ranges, return shape, pricing, and endpoint. Every sentence adds useful information and there is no noticeable filler.

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?

For a simple two-parameter predicate with annotations and no output schema, the description is nearly complete. The main residual gap is that the returned 'value' field is not explicitly described as a boolean or otherwise typed.

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. It does so by explaining that n is the candidate number and k is the exponent applied to each digit, and it restates the valid ranges for both parameters.

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 clearly defines the predicate: whether n equals the sum of its digits each raised to k, with concrete positive and negative examples. It is not a tautology despite the opaque name/title, but it does not explicitly differentiate from siblings such as pdi_count.

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 predicate definition and input ranges: check one n/k pair. However, there is no explicit when-to-use guidance, when-not-to-use guidance, or named alternative such as a counting or enumeration sibling.

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