Skip to main content
Glama

ScorpTech x402 Tools

Duffinian Gcd

duffinian_gcd
Read-onlyIdempotent

The greatest common divisor of n and its divisor sum. 4 gives 1, 6 gives 6, 9 gives 1, and 15 gives 3. n runs from 1 to 1000000. 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/duffinian-gcd

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds value beyond that: the accepted domain (1 to 1,000,000), the exact return shape (JSON with n and value), the per-call price and payment rails, and an equivalent HTTPS endpoint — all operationally relevant facts the structured fields do not carry.

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?

Purpose and concrete examples are front-loaded, followed by domain, return shape, price and endpoint in a compact sequence with no filler. Minor redundancy is the range statement duplicating the schema bounds, but it reads as a useful restatement rather than waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a simple deterministic single-integer function, and the description covers semantics, examples, valid range, return fields, cost and transport. With no output schema and only one parameter, nothing an agent needs to invoke it correctly is missing.

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 description must carry parameter meaning; it does so only partly by restating the 1-to-1,000,000 bound (already in the schema as minimum/maximum) and illustrating the computation with examples. It never explicitly explains what 'divisor sum' means for edge inputs or how n maps through the examples, leaving the agent to infer.

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?

States a specific computable quantity: the greatest common divisor of n and its divisor sum, backed by four worked examples (4→1, 6→6, 9→1, 15→3) that pin down the semantics exactly. An agent can distinguish this from duffinian, duffinian_count and the various *_gcd siblings without opening any schema.

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 worked examples and the stated input range, so an agent knows this is a single-value lookup for a given n. However, nothing says when to pick this over duffinian, duffinian_sum, duffinian_count or the other gcd tools, and no prerequisites or exclusions are given.

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