Skip to main content
Glama

ScorpTech x402 Tools

Smallest Prime Factor

smallest_prime_factor
Read-onlyIdempotent

The smallest prime factor of n. It is 1 for 1, 2 for 12, 5 for 35, and 7 for 49. n runs from 1 to 1000000000000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/smallest-prime-factor

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description does add genuinely non-schema context — the $0.001 USDC x402 payment requirement and an alternate HTTPS endpoint — plus the edge-case convention that spf(1)=1, which is valuable behavior disclosure. However it says nothing about failure behavior for invalid input or how payment failures surface, so it stays at an adequate 3.

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?

Definition is front-loaded in the first sentence, followed by clarifying examples, domain, and then commercial/transport details. Every sentence carries information; the pricing and endpoint sentences are long but are load-bearing for an agent that must decide whether it can pay for the call.

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?

For a one-parameter pure-computation tool with no output schema, the description supplies enough: what is computed, the input domain, worked input/output pairs that bracket the return values, and the payment/auth mechanics. Missing only explicit error-behavior notes and sibling differentiation.

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%, but there is only one parameter whose min/max are already encoded structurally, so the description's restatement of the 1..1e12 range is largely redundant. The examples do add semantic value by pinning down the non-obvious spf(1)=1 case, which the schema cannot express.

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 first sentence names a specific mathematical operation on a specific resource, and the worked examples (1->1, 12->2, 35->5, 49->7) disambiguate it beyond the name alone. It does not explicitly distinguish itself from the sibling largest_prime_factor, which is the one remaining gap.

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: the agent can infer 'call this to get the smallest prime factor' from the definition and examples, and the stated domain (1 to 1e12) tells it when the tool is applicable. There is no explicit guidance on when to prefer it over factor-related siblings or what to do for out-of-range input.

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