Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as minia2a — hosted x402 API marketplace (HTTP). If you published it, claim ownership there.

x402-is-harshad

Is Harshad: Checks whether value is divisible by the sum of its decimal digits, returning a boolean 🆓 5 free trial calls per signed wallet

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": {
      "value": "<value>"
    },
    "name": "x402-is-harshad"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "value"
      +]
  2. Changed1 schema field changed
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  3. Changed1 schema field changed
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  4. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the return type (boolean) and a cost/auth constraint ('5 free trial calls per signed wallet'), which is real added context. However, it says nothing about edge cases that matter for this computation — zero or a digit sum of zero (division by zero), negative inputs, non-numeric strings, or what happens when the free trial is exhausted.

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?

A single front-loaded sentence gives the definition and the return type, with the pricing note appended. No filler, though the emoji and pricing clause slightly dilute an otherwise crisp definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-parameter predicate with no output schema, the core meaning is adequately conveyed. What is missing is exactly the surrounding detail an agent needs to call it reliably: input format constraints, edge-case behavior, and disambiguation from the sibling x402-is-harshad-number.

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% for the single parameter 'value', so the description must compensate. It does clarify that the value is interpreted as decimal digits, which is meaningful, but it never states the expected string format, whether negatives or leading zeros are accepted, or any size limit. Partial compensation, not full.

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 states a specific predicate and even defines it operationally: 'Checks whether value is divisible by the sum of its decimal digits, returning a boolean.' An agent knows exactly what the tool computes and what it returns. It stops short of a 5 because it never differentiates itself from the near-identically named sibling x402-is-harshad-number, leaving genuine ambiguity about which to call.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no mention of prerequisites beyond the pricing note, and no routing to or away from the sibling x402-is-harshad-number that appears to cover the same concept. The agent must infer that this is the right tool purely from the name.

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