Skip to main content
Glama

ScorpTech x402 Tools

Frobenius

frobenius
Read-onlyIdempotent

The Frobenius number of two coprime integers a and b, each at least 2. It is ab-a-b, the largest integer that cannot be made with non-negative combinations. For 2 and 5 it is 3. For 4 and 7 it is 17. A pair that is not coprime is rejected. 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/frobenius

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": "frobenius"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses the failure mode ('A pair that is not coprime is rejected'), the return shape ('JSON with: a, b, value'), a per-call price with payment rail (x402, Base or Solana), and an equivalent HTTPS endpoint — context annotations cannot carry.

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 two concrete worked examples (2 and 5 → 3; 4 and 7 → 17) that anchor the semantics, then operational details. Every sentence is useful; only the endpoint/pricing tail adds slight bulk, but it is operationally necessary.

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?

There is no output schema, but the description spells out the returned fields, and it covers input constraints, error behavior, and access/payment method. Nothing needed to invoke it correctly is missing.

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 compensate, and it does: it identifies both parameters by name and adds the coprimality requirement, a semantic constraint the schema cannot express. It does not restate the schema's 2 and 1,000,000 bounds, but those are visible in the schema.

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 description names the exact mathematical object computed ('The Frobenius number of two coprime integers a and b') and immediately characterizes it as 'ab-a-b, the largest integer that cannot be made with non-negative combinations,' which fully disambiguates it from other number-theory siblings.

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?

Preconditions are stated explicitly — both inputs must be at least 2 and the pair must be coprime, otherwise the call is rejected. What's absent is explicit routing to any alternative tool, but for a uniquely-named pure function the usage envelope is fully specified.

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