Skip to main content
Glama

ScorpTech x402 Tools

Carmichael Sum

carmichael_sum
Read-onlyIdempotent

The sum of the Carmichael numbers that are at most n. Through 561 it is 561, through 1105 it is 1666, through 1729 it is 3395, and through 8911 it is 24193. n runs from 1 to 10000. Returns JSON with: n, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/carmichael-sum

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

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?

The annotations already declare this is a safe, read-only, idempotent operation, so the main job is done. The description adds useful context beyond them: the accepted input range, the returned JSON fields, the per-call price ($0.001 USDC via x402 on Base or Solana), and an equivalent HTTPS endpoint — details an agent needs before invoking a paid service.

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?

Purpose is front-loaded in the first sentence, followed by examples, range, return shape, and pricing in a logical order. Four worked examples is slightly more than necessary, but each reinforces the inclusive-bound semantics, so nothing is clearly wasteful.

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?

This is low-complexity (one required integer parameter, no nested objects, no output schema), and the description covers the return fields (n, value), the domain, the cost, and an alternate transport. It generally suffices for correct invocation; only the edge-case behavior below the first Carmichael number is left implicit.

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 description coverage is 0%, so the description has to carry parameter meaning, and it does so fairly well. The four 'through X it is Y' examples establish that n is an inclusive upper bound and show the value scaling, though it never states the type (integer) or that the result is 0 below the first Carmichael number.

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?

The description names a specific operation on a specific object: 'the sum of the Carmichael numbers that are at most n.' That is enough to separate it from sibling-style tools such as a Carmichael count, listing, factor, or next-number tool without opening any schema.

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?

The domain ('n runs from 1 to 10000') and worked examples imply when the tool applies, but there is no explicit when-to-use or when-not-to-use guidance and no named alternative. The usage context is inferable rather than stated.

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