Skip to main content
Glama

ScorpTech x402 Tools

Carmichael Number

carmichael_number
Read-onlyIdempotent

Whether n is a Carmichael number: composite, squarefree, and p-1 divides n-1 for every prime p dividing n. 561, 1105, and 1729 are. 1, 91, and 341 are not. n runs from 1 to 20000. 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-number

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_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, openWorld), the description discloses real behavioral traits: pricing at $0.001 USDC per successful call via x402 on Base or Solana, and an equivalent HTTPS endpoint. The only gap is that the returned 'value' field is not described as a boolean, leaving the response semantics slightly ambiguous.

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?

The definition is front-loaded, examples are compressed into two short sentences with clear positive/negative split, and the operational details (range, return shape, price, mirror endpoint) follow in order. No sentence is redundant.

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?

With no output schema, the description does explain the return object (n, value), which is the right call for a simple predicate tool, and it covers domain limits and cost. Missing only an explicit statement that value is boolean and any guidance on error behavior for out-of-range inputs.

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 carries the burden for the single parameter. It establishes that n is the candidate integer and restates the domain 1..20000; the mathematical definition of the predicate further clarifies what n is tested against, which is meaningful beyond the bare integer schema.

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 precise mathematical definition of the predicate (composite, squarefree, p-1 | n-1 for every prime p dividing n) plus positive examples (561, 1105, 1729) and negative ones (1, 91, 341), so the agent knows exactly what is being tested. It does not explicitly differentiate itself from nearby siblings such as carmichael_count or carmichael_factors, which keeps it out of the top band.

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 rather than stated: test a single integer n in 1..20000 and get a yes/no answer. There is no explicit when-to-use/when-not guidance and no named alternative for related tasks like counting or factoring, so the agent must infer routing from names alone.

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