Skip to main content
Glama

ScorpTech x402 Tools

Egyptian Length

egyptian_length
Read-onlyIdempotent

How many unit fractions the greedy Egyptian expansion of a/b uses. 1/2 uses 1, 5/6 uses 2, 3/7 uses 3, and 8/11 uses 4. 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-length

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_length"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bYes

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, openWorld, and non-destructive, so the bar is lower, and the description still adds substantive context: a stated price ($0.001 USDC per successful call via x402 on Base or Solana) and an equivalent HTTPS endpoint. It also discloses the return payload shape (a, b, value), which is useful given no output schema exists.

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?

It is front-loaded with the definition and concrete examples, then constraints, then return shape, then payment details — a sensible order with little waste. The range restatement slightly duplicates the schema, but overall it is compact and scannable.

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 two-integer computational tool with no output schema, the description supplies examples, input domain, return fields, and payment mechanics, which is nearly everything needed to call it. The only soft spot is that 'value' is not explained as the expansion length, though the surrounding context makes it inferable.

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 semantics, and it does: a and b are the numerator and denominator of the fraction a/b, with a properness requirement and domain bounds. It adds real meaning over the bare integer minimums/maximums in the schema, though it does not name the parameters individually.

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 states a specific verb and resource: counting the unit fractions in the greedy Egyptian expansion of a/b, with worked examples (1/2→1, 5/6→2, 3/7→3, 8/11→4) that pin down exactly what is counted. It does not explicitly differentiate itself from siblings like egyptian, egyptian_first, or egyptian_sum, so it stops short of a 5.

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

Usage Guidelines4/5

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

It clearly states the applicability conditions: the fraction must be proper, a runs 1–30, and b runs 2–30, so an agent knows when a call is valid. There is no comparison to or routing away from related tools, but the input constraints are explicit.

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