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. Price: $0.001 USDC per successful call (x402, 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

A3.5/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 safety is covered. The description adds genuinely new behavioral context: a $0.001 USDC x402 payment requirement and an alternate HTTPS endpoint, plus an implicit failure condition for improper fractions. The return type (an integer count) is only implied, not stated.

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 pricing/endpoint — a logical order with little waste. Four examples are slightly more than strictly needed, but each is short and illustrative.

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, no-output-schema tool, the description supplies the computation, examples, input domain, properness requirement, and payment/transport details. The only gaps are an explicit statement of the return type and behavior on invalid (improper) input.

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 coverage is 0%, so the description must carry parameter meaning. It states the ranges (a: 1–30, b: ≥2) and that the fraction must be proper (implying a<b), which partly compensates. It never explicitly labels a as numerator and b as denominator, so the mapping remains inferred.

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 description states a specific computable quantity — the count of unit fractions in the greedy Egyptian expansion of a/b — and four worked examples (1/2→1, 8/11→4) make the operation unambiguous. It does not explicitly distinguish itself from sibling tools like egypt_greedy, egyptian_first, or egyptian_sum, which prevents 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 Guidelines2/5

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

No guidance on when to pick this tool versus the many Egyptian-fraction siblings (egypt_greedy, egypt_check, egyptian_sum, etc.). The stated domain constraints (proper fraction, 1–30) describe valid input rather than when-to-use context.

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