Skip to main content
Glama

ScorpTech x402 Tools

Unit Sum

unit_sum
Read-onlyIdempotent

The reduced sum of unit fractions 1/d. Dens must be positive. An empty list or a non-positive denominator is rejected. Returns JSON with: num, den. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/unit-sum

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": {
      "dens": "<dens>"
    },
    "name": "unit_sum"
  }
}

Input Schema

NameRequiredDescriptionDefault
densYes

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 declare this as read-only, idempotent, non-destructive, and open-world. The description adds useful behavior beyond that: price per successful call, payment context (x402 on Base or Solana), HTTPS endpoint, rejection of empty/non-positive input, and return keys num/den.

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 purpose is front-loaded and the description is compact. There is slight redundancy between 'Dens must be positive' and 'a non-positive denominator is rejected', but the pricing and endpoint details are relevant operational 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 simple one-parameter tool with no output schema, the description covers purpose, input constraints, rejection behavior, return shape, and payment/access details. The main gap is that it does not mention the array-size or denominator upper limits, and it should reconcile 'positive' with the schema's zero minimum.

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 explains that dens is a list of denominators that must be positive and non-empty, but it omits the schema's maxItems=30 and maximum=1000000, and 'positive' conflicts with the schema's minimum of 0.

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 states a specific mathematical operation: the reduced sum of unit fractions 1/d. This is precise enough to distinguish it from generic sum tools such as arithmetic_sum or alt_sum, even without naming siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives validation constraints ('Dens must be positive', empty lists rejected) but does not say when to use this tool versus the many other *_sum siblings. No alternatives or when-not-to-use guidance are provided.

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