Skip to main content
Glama

ScorpTech x402 Tools

Egyptian Sum

egyptian_sum
Read-onlyIdempotent

The sum of the denominators in the greedy Egyptian expansion of a/b. 3/7 sums to 245, 5/6 sums to 5, and 8/11 sums to 4114. The fraction must be proper. a and b run from 1 to 30, with b at least 2. Returns JSON with: a, b, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/egyptian-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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "egyptian_sum"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bYes

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 readOnly, idempotent, non-destructive, openWorld, so the safety profile is covered; the description adds material behavior the annotations do not: a per-call price of $0.001 USDC via x402 on Base or Solana, and an equivalent HTTPS endpoint. It also discloses the return shape (a, b, value). The only gap is what happens on invalid input (e.g., improper fraction), which is left unstated.

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 examples, then constraints, then return shape and commercial terms — a sensible order with no filler sentences. The pricing and HTTPS lines are slightly operational rather than semantic, but they plausibly earn their place for an agent that must know a call is paid.

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

Completeness3/5

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

For a simple two-integer computation with annotations covering safety and a stated JSON return of {a, b, value}, the definition is largely adequate. What is thin is precision on the output: 'value' is never explicitly tied to the denominator sum in the return sentence, and error behavior for improper fractions is undefined.

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 description coverage is 0%, so the description must carry parameter meaning, and it does: it names both inputs, restates their bounds (1–30, b ≥ 2, matching the schema), and adds a genuine constraint absent from the schema — the fraction must be proper, implying a < b. The examples make the mapping concrete. The redundancy of the bounds keeps it from a 5.

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 first sentence names a specific verb and resource: the sum of denominators in the greedy Egyptian expansion of a/b, reinforced by three worked examples (3/7 → 245, 5/6 → 5, 8/11 → 4114). This is far more specific than the bare name. However, it never distinguishes itself from plausible siblings such as egyptian, egyptian_length, or egyptian_first, which is what would separate a 5 from a 4.

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?

There is an implicit precondition in 'The fraction must be proper' and explicit numeric bounds on a and b, which tells the agent when the call is valid. But no guidance is given on choosing this tool over the egyptian_* siblings, and no alternatives are named, so selection guidance is only inferable.

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