Skip to main content
Glama

ScorpTech x402 Tools

Egyptian Last

egyptian_last
Read-onlyIdempotent

The last denominator in the greedy Egyptian expansion of a/b. 3/7 ends at 231, 8/11 ends at 4070, and 1/2 ends at 2. 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-last

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

Input Schema

NameRequiredDescriptionDefault
aYes
bYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnly, idempotent, non-destructive), it discloses payment requirements ($0.001 USDC via x402 on Base or Solana) and an equivalent HTTPS endpoint — genuinely actionable context an agent would not otherwise know. It stops short of describing error behavior or what happens if a/b violates the 'proper' precondition.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the definition, then examples, precondition, input range, return shape, and payment/endpoint in a compact sequence. Every sentence supplies distinct information; nothing is redundant filler.

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

Completeness5/5

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

With no output schema and zero schema coverage, the description compensates by naming the return fields (a, b, value), the validity constraint, the input domain, and the cost/transport model. An agent has everything needed to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 the load, and it does: a and b are identifiable as numerator and denominator of the fraction, and 'must be proper' adds the a<b constraint that the schema does not enforce or document.

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?

States a specific operation on a specific mathematical resource: 'the last denominator in the greedy Egyptian expansion of a/b'. The word 'last' distinguishes it from egyptian_first, egyptian_length, and egyptian_sum without needing to name them, and worked examples (3/7 → 231) confirm the semantics.

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?

It gives a precondition ('the fraction must be proper') and the valid input domain, which helps an agent decide when the call is legal. But it never says when to pick this over the sibling egyptian / egyptian_first / egyptian_sum tools, so the alternative selection is only implied by the word 'last'.

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