Skip to main content
Glama

ScorpTech x402 Tools

Harmonic

harmonic
Read-onlyIdempotent

The nth harmonic number as a reduced fraction. H1 is 1/1, H2 is 3/2, and H6 is 49/20. n < 1 is rejected. n runs up to 200. Returns JSON with: n, num, den. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/harmonic

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, but the description adds real behavioral context beyond them: the deterministic cost ($0.001 USDC per successful call via x402 on Base or Solana), the out-of-range rejection behavior, and a fallback HTTPS endpoint. It stops short of describing latency or failure modes beyond the range check, keeping it out of the top band.

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?

Front-loaded with the definition and examples, then constraints, then the return shape, then cost and endpoint. Every sentence adds information and none is filler.

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?

There is no output schema, and the description compensates by naming the returned fields (n, num, den) as JSON. Combined with the domain bounds, rejection rule, and pricing, an agent has everything needed to call this correctly.

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 carries the burden and does so well: it explains the domain (n < 1 rejected, n up to 200) and illustrates the parameter's meaning with worked examples. One minor wrinkle: the schema sets minimum=0 while the description says n < 1 is rejected, so n=0 is ambiguous between the two sources.

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+resource ('the nth harmonic number as a reduced fraction') and pins it down with concrete examples (H1=1/1, H2=3/2, H6=49/20), which instantly distinguishes it from the surrounding number-theory siblings like abundancy or aliquot.

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 by the tight domain constraints (n must be >= 1 and <= 200) and the rejection rule, but there is no explicit statement of when to pick this over an alternative sibling. For a single-purpose closed-form compute tool that is largely acceptable, though it leaves the agent to infer that there is nothing to choose between.

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