Skip to main content
Glama

ScorpTech x402 Tools

Egyptian First

egyptian_first
Read-onlyIdempotent

The first denominator in the greedy Egyptian expansion of a/b. 3/7 starts at 3, 5/6 starts at 2, and 2/3 starts 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-first

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

Input Schema

NameRequiredDescriptionDefault
aYes
bYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds behavior the annotations cannot express: a per-call price of $0.001 USDC via x402 on Base or Solana, and an equivalent HTTPS endpoint. It does not note failure/refund behavior for invalid inputs, which keeps it from a 5.

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 core definition is front-loaded in the first sentence, followed by examples, constraints, return fields, pricing and transport. Every element is useful, though the pricing/URL tail reads as appended boilerplate rather than integrated context.

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, yet the description enumerates the returned JSON fields (a, b, value), and it discloses cost and the alternate HTTPS route. The only incompleteness is the unexplained meaning of "value" and no mention of what happens on an improper fraction or out-of-range input.

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% and the schema itself has no property descriptions, so the description carries the full burden. It identifies a as the numerator and b as the denominator through the proper-fraction rule (a < b implicitly), and restates the 1–30 bounds with b ≥ 2, adding the crucial constraint that the fraction must be proper, which the schema cannot express. The returned field "value" is not defined, leaving one gap.

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?

"The first denominator in the greedy Egyptian expansion of a/b" states an exact mathematical quantity with a specific verb-like operation and resource, immediately distinguishing it from siblings such as egyptian_last or egyptian_length. The worked examples (3/7 starts at 3, 5/6 starts at 2) remove any residual ambiguity about what is returned.

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?

The description gives concrete guidance on valid inputs ("fraction must be proper", "a and b run from 1 to 30, with b at least 2"), which tells the agent when the call will succeed. It stops short of explicitly naming sibling alternatives (e.g. use egyptian_last for the final denominator), so there is no when-not or alternatives routing.

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