Skip to main content
Glama

x402-is-happy

Is Happy: Check whether a number is a happy number — repeatedly replace it by the sum of squares of its digits until it reaches 1 or cycles. Provide value. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
valueNo

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

C2.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the paywall context ('5 free trial calls per signed wallet'), which is real behavioral information, and explains the underlying computation. However, it never states what is returned (boolean vs. an object with the sequence), whether there is a size limit on the input, or what happens on invalid input.

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

Conciseness3/5

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

The core sentence is well front-loaded and explains the concept efficiently, but the definition of a happy number is arguably redundant for a caller who already knows the term, while 'Provide value.' is an awkward fragment and the emoji trial-call banner is boilerplate appended to the definition rather than integrated.

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

Completeness2/5

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

The input schema is essentially bare (no description, no required list) and there is no output schema, so the description should at minimum state the input format and the shape of the result. Instead it explains the mathematics but leaves the agent guessing about the return value and input constraints for this simple predicate tool.

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

Parameters2/5

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

Schema description coverage is 0% and the single parameter 'value' is typed only as string with no description and is not marked required. The phrase 'Provide value.' names the field but adds no meaning: it does not say whether the number is passed as a decimal string, whether it must be positive, or whether large integers are supported.

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 specific verb and resource ('check whether a number is a happy number') and even defines the algorithm (repeated digit-square sums until 1 or a cycle), which disambiguates the vague name 'is-happy'. It stops short of differentiating from the near-identical sibling x402-is-happy-number, which appears in the sibling list.

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 guidance, no exclusions, and no mention of the obvious alternative x402-is-happy-number that performs the same check. The fragments 'Provide value.' and the trial-call line describe input/pricing, not usage conditions.

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