Skip to main content
Glama

ScorpTech x402 Tools

Perfect Totient

perfect_totient
Read-onlyIdempotent

Whether n equals the sum of its iterated totients down to 1. The sum includes the final 1 and excludes n. 3, 9, 15, and 27 are. 1, 2, and 6 are not. n runs from 1 to 100000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/perfect-totient

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive profile, and the description adds genuinely new context: the $0.001 USDC per-successful-call cost, the x402/Solana payment rail, and an equivalent HTTPS endpoint. That pricing/disclosure is exactly the kind of thing annotations cannot carry. It does not state the response shape, but the pricing and domain cap are the higher-value disclosures.

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 definition, then immediately the inclusion/exclusion convention and true/false examples, then limits and cost. Dense but every sentence carries information; the endpoint URL is a useful escape hatch rather than filler.

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 should imply the return type — 'Whether n equals...' plus explicit 'are'/'are not' examples makes a boolean result clear by inference. Range limit and cost are both disclosed. The only gap is no explicit mention of error behavior for out-of-range n, which the schema bounds already enforce.

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?

Only one parameter, and schema description coverage is 0%, so the description must compensate. It says 'n runs from 1 to 100000', which merely restates the schema's minimum/maximum rather than explaining that n is the integer under test or discussing boundary behavior at 1 (which the examples show is not perfect). Baseline 3 for a single-param tool with schema-provided bounds.

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: whether n equals the sum of its iterated totients, and pins down the exact convention (final 1 included, n excluded) plus worked true/false examples. An agent knows precisely what is being computed, though it never contrasts itself with the nearby totient/cototient siblings.

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 by the nature of the tool (a single-integer property check within 1..100000), but there is no explicit statement of when to reach for this versus totient, cototient, or other number-classification siblings. The domain constraint is the only routing signal.

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