Skip to main content
Glama

ScorpTech x402 Tools

Harshad Base

harshad_base
Read-onlyIdempotent

Whether n is a Harshad number in base b: n is divisible by the sum of its base-b digits. 10 is Harshad in base 2. 13 is not Harshad in base 10. n runs from 1 to 999999999999999, and b runs from 2 to 36. Returns JSON with: n, base, sum, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/harshad-base

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>",
      "base": "<base>"
    },
    "name": "harshad_base"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
baseYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the exact return fields (n, base, sum, value), the per-call price of $0.001 USDC via x402, payment chains (Base or Solana), and an equivalent HTTPS endpoint. That payment and transport information is not derivable from any structured field and is exactly the kind of context an agent needs before invoking.

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?

The definition is front-loaded with the core predicate and criterion, then examples, then bounds, then return fields, then pricing and endpoint. It is well ordered and short. Minor waste in re-stating the numeric bounds already present in 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 steps in and names the four returned fields, and it discloses the paid-call model and alternate endpoint. For a two-parameter pure-computation tool this covers what an agent needs. The only gap is the unexplained 'value' field semantics and no differentiation from the 'harshad' sibling.

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

Parameters3/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 explains that 'base' is the radix used for digit summation and that n is the number under test, which is real semantic value. However, the stated ranges (n from 1 to 999999999999999, b from 2 to 36) merely restate the schema's minimum/maximum constraints, and there is no guidance on invalid or edge inputs.

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 gives a precise verb-and-resource definition ('whether n is a Harshad number in base b') plus the actual divisibility criterion and two worked examples (10 in base 2, 13 in base 10). An agent knows exactly what computation this performs. It loses a point only because a sibling named 'harshad' exists and the description never states how this base-parameterized version differs from it.

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 rather than stated: it is obviously a pure predicate to call when you need a Harshad test for a given base. There is no explicit when-to-use/when-not-to-use guidance and no mention of the 'harshad' sibling as the base-10 alternative. Adequate for a simple computational tool, but no routing 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