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. 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/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.8/5.0
Behavior4/5

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

Beyond the annotations (readOnly/idempotent/non-destructive), the description discloses the response shape ('JSON with: n, value'), the cost model ($0.001 USDC per successful call via x402, on Base or Solana), and an equivalent HTTPS endpoint. That is substantial operational context an agent needs. It does not explain what 'value' contains (presumably a boolean), which is the main remaining gap.

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 definition, then examples, then domain, then return/pricing/endpoint details — a sensible order with no filler. The telegraphic example sentences ('3, 9, 15, and 27 are. 1, 2, and 6 are not.') are compressed but still readable. Pricing and endpoint lines are dense yet each carries required information.

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 predicate with no output schema, the definition covers inputs, computation semantics, example outcomes, return keys, cost, and transport. The only shortfall is the unexplained 'value' field in the promised JSON. Annotations already cover safety traits, so nothing critical is missing.

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 param burden. It does explain what n represents through the surrounding definition and restates the 1..100000 bound that the schema also encodes. The semantic payload is adequate, though it never states the value type for n explicitly.

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 ('n equals the sum of its iterated totients down to 1'), including the edge-case convention that the final 1 is included and n itself excluded. Concrete positive (3, 9, 15, 27) and negative (1, 2, 6) examples remove ambiguity. It does not explicitly distinguish itself from totient-adjacent siblings such as totient or totient_sum, relying on the definition to imply the difference.

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 this is a single-number predicate to be called when testing perfect-totientness. The stated domain 'n runs from 1 to 100000' is a useful boundary. No explicit when-to-use/when-not or alternative-tool routing is given, which is acceptable for a narrow math predicate but leaves the sibling routing for perfect_check and totient unaddressed.

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