Skip to main content
Glama

ScorpTech x402 Tools

Padic

padic
Read-onlyIdempotent

The p-adic valuation v_p(n): how many times the prime p divides n. v_2(12) is 2, v_3(12) is 1, and v_5(12) is 0. p must be prime. n runs from 1 to 1000000000000. Returns JSON with: p, 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/padic

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": {
      "p": "<p>",
      "n": "<n>"
    },
    "name": "padic"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
pYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, open-world behavior. The description adds useful operational context beyond them: returned JSON fields, per-success pricing in USDC via x402 on Base or Solana, and an equivalent HTTPS endpoint. It does not cover error behavior or rate limits, so it is strong but not exhaustive.

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 compact and front-loaded: it opens with the operation, gives examples, then states constraints, return fields, pricing, and endpoint. Every sentence contributes useful information with no redundant padding.

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?

For a simple deterministic math tool, the description supplies the operation definition, parameter constraints, return fields, pricing model, and alternate HTTPS access path. Although no output schema exists, the return shape is explicitly described, so an agent has enough to invoke the tool correctly.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully carries the semantic burden for both parameters: p must be prime, n is bounded from 1 to 1000000000000, and the examples show how the value is computed for concrete p and n pairs. This adds substantial meaning beyond the bare JSON Schema constraints.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the exact mathematical operation, p-adic valuation v_p(n), and clarifies it as how many times prime p divides n. The worked examples v_2(12)=2, v_3(12)=1, v_5(12)=0 make the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear validity conditions: p must be prime and n runs from 1 to 1000000000000. It does not compare against sibling number-theory tools or state when not to use this tool, but for a single mathematical function the constraints provide sufficient usage context.

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