Skip to main content
Glama

Harshad

harshad
Read-onlyIdempotent

Whether n is a base-10 Harshad number: n is divisible by the sum of its decimal digits. 18 is Harshad, and 11 is not. n runs from 1 to 999999999999999. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/harshad

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/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 openWorld, so the safety profile is covered; the description goes beyond by disclosing the paid x402/Solana cost ($0.001 USDC per successful call) and an equivalent HTTPS endpoint, which materially affects whether an agent should invoke it. It does not state the return form explicitly, leaving 'whether' to imply a boolean.

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-loads the definition and example before commercial details, and each sentence adds something (definition, example, domain, price, alternate transport). Slightly dense with the endpoint URL appended, but no 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 single-integer predicate with no output schema, the description supplies the definition, domain, example, cost and transport. Adequate to call correctly; the only gap is not stating outright that the result is a boolean.

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 does define what n means (a number whose decimal digit sum must divide it) and gives the exact domain 1 to 999999999999999, matching the schema bounds. Only the integer type itself is left to the schema.

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?

States a specific verb (test whether) and a precisely defined resource (base-10 Harshad number), with the defining formula and a worked positive/negative example (18 yes, 11 no). The explicit 'base-10' qualifier separates it from the sibling harshad_base, so an agent can pick between them without opening schemas.

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: an agent can infer this is the tool for a plain Harshad test in base 10, but the description never says when to prefer harshad_base, nor states any exclusions or prerequisites beyond the numeric domain.

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