Skip to main content
Glama

ScorpTech x402 Tools

Carmichael Factors

carmichael_factors
Read-onlyIdempotent

The prime factors of a Carmichael number, ascending and comma-separated. 561 gives 3,11,17. 1105 gives 5,13,17. 1729 gives 7,13,19. A non-Carmichael number is rejected. 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-factors

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare a safe, read-only, idempotent operation, and the description adds meaningful context on top: a per-call price ($0.001 USDC via x402 on Base or Solana), a rejection behavior for invalid inputs, and an alternate HTTPS endpoint. Payment cost and failure mode are exactly the traits an agent cannot learn from the annotations or schema.

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?

The core definition is front-loaded, followed by examples, input constraints, return shape, and pricing in a sensible order. The three examples are slightly redundant for conveying the comma-separated format, and the endpoint/pricing sentence is a dense run-on, but nothing is truly wasted.

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 carries the return contract itself ("Returns JSON with: n, value") and also covers input domain, error behavior, and cost, which is sufficient for a low-complexity single-parameter tool. The only soft spot is that "value" is not explicitly described as the factor list, though the surrounding text strongly implies it.

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

Parameters3/5

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

Schema description coverage is 0%, so the single parameter 'n' is undocumented in the schema, but the description compensates by giving the domain (a Carmichael number), the valid range (1 to 20000), and three concrete example values. This is adequate, though it never states what happens at non-Carmichael or out-of-range values beyond "rejected", and the return field "value" is only implied to hold the factor list.

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 output ("the prime factors of a Carmichael number, ascending and comma-separated") and backs it with three worked examples (561 → 3,11,17; 1105 → 5,13,17; 1729 → 7,13,19). This makes it unmistakably distinct from a sibling that would return the Carmichael number itself rather than its factors.

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?

It gives input constraints ("n runs from 1 to 20000") and an error case ("A non-Carmichael number is rejected"), which implies the tool only applies when the input is already known to be Carmichael. It never explicitly routes the agent between this and alternatives such as a Carmichael-generating or generic factoring tool, so selection guidance is inferred 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