Skip to main content
Glama

ScorpTech x402 Tools

Alt Sum

alt_sum
Read-onlyIdempotent

The sum of alternating factorials from lo through hi inclusive. The sum from af(1) through af(5) is 127. lo must not pass hi. Each index runs from 1 to 200. Past 15 digits the value is a decimal string. Returns JSON with: lo, hi, count, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/alt-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": {
      "lo": "<lo>",
      "hi": "<hi>"
    },
    "name": "alt_sum"
  }
}

Input Schema

NameRequiredDescriptionDefault
hiYes
loYes

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?

Annotations already declare readOnly, idempotent, open-world, non-destructive, so the safety profile is covered. Beyond that, the definition adds genuinely new behavior: pay-per-call at $0.001 USDC via x402 on Base or Solana, an equivalent HTTPS endpoint, the returned JSON keys, and the rule that values past 15 digits come back as decimal strings. It still omits payment-failure and error behavior, but the disclosure is well above the annotation baseline.

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 definition is front-loaded with the operation and example, then constraints, then output and cost, which is a sensible order. It is slightly overlong, restating the 1-200 bound already enforced by the schema and giving an HTTPS URL that duplicates the MCP path.

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?

There is no output schema, so the description usefully enumerates the returned fields (lo, hi, count, value) and warns about decimal-string values past 15 digits. Given a 2-parameter, pure-computation tool with full annotations, this is close to complete; only error and payment-failure handling remain unstated.

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?

With 0% schema description coverage, the description has to carry the semantics and it largely does: it names lo and hi as inclusive bounds, states lo must not pass hi, and restates the 1-200 index domain that the schema only encodes as min/max. The worked example clarifies what is being summed at each index.

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?

It states a precise mathematical operation: the sum of alternating factorials over an inclusive index range, with a worked example (af(1)..af(5) = 127) that pins down what 'af' means. It does not explicitly distinguish itself from close siblings such as alt_factorial or alternating_sum, so an agent must infer the difference from the definition alone.

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?

The definition sets usage constraints (lo must not pass hi, indices 1-200) and states that the operation is billed per call, which implies when the tool is worth invoking. However, it never says when to prefer this over the many sibling *_sum tools, and no alternatives are named.

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