Skip to main content
Glama

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. Price: $0.001 USDC per successful call (x402, 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.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the safety profile is covered. The description adds genuinely new behavior context: the pricing model ($0.001 USDC per successful call via x402 on Solana) and an equivalent HTTPS endpoint, which an agent would not otherwise know.

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?

Front-loaded with the predicate definition, then examples, then domain, then payment mechanics. Dense but each sentence adds information; only mild cost is that the HTTPS endpoint sentence is a bolted-on alternative transport that slightly breaks flow.

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?

Definition, examples, domain, cost, and transport are all present, which is ample for a single-integer predicate with no output schema. Remaining gap is the exact response shape (boolean vs. structured object) and how the x402 payment flow is triggered, which an agent calling for the first time might need.

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 must carry the load. It does specify what n is and restates the 1-20000 domain (mirroring the schema min/max but making the constraint visible in prose), plus examples that show accepted values and their results. It does not clarify the cost of an invalid or out-of-range n, but the core semantics are covered.

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?

States a specific predicate with a precise mathematical definition (composite, squarefree, p-1 | n-1) plus concrete positive and negative examples. It is clear what the tool computes, but it never distinguishes itself from the sibling 'carmichael', so an agent cannot tell whether that sibling is a listing, a different predicate, or an alias.

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 valid input domain (1 to 20000) is given, which implicitly bounds when the tool can be used, and the examples clarify the semantics. However, there is no explicit guidance on when to choose this over carmichael, carmichael_next, or carmichael_count, leaving the sibling routing to inference.

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