Skip to main content
Glama

ScorpTech x402 Tools

Range Lcm

range_lcm
Read-onlyIdempotent

The least common multiple of the integers from lo through hi. The LCM of 1 through 10 is 2520, and the LCM of 1 through 11 is 27720. lo must not pass hi. Each end runs from 1 to 40. Returns JSON with: lo, hi, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/range-lcm

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": {
      "lo": "<lo>",
      "hi": "<hi>"
    },
    "name": "range_lcm"
  }
}

Input Schema

NameRequiredDescriptionDefault
hiYes
loYes

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?

Annotations already declare readOnly/idempotent/non-destructive, so the description focuses on what they don't cover: the exact JSON return fields (lo, hi, value), the domain restriction to 1-40, and the cost model. Pricing and the x402 payment requirement are notable operational context an agent needs before calling, though it says nothing about failure behavior for invalid ranges.

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 core definition, then constraints, then return shape, then cost and the HTTPS fallback — a sensible information hierarchy. The two numeric examples earn their place by disambiguating inclusive endpoints, though the pricing/endpoint sentence adds bulk that is only marginally relevant to invocation.

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?

For a two-integer, no-output-schema math tool, the description covers the computation, the valid domain, the ordering precondition, the exact return keys, and even the cost and alternate transport. Nothing an agent needs to call 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 defines lo and hi as inclusive range endpoints, states the 1-40 bound on 'each end', and gives the ordering constraint lo <= hi. It adds no format or type detail beyond that, but for two bounded integers little more is needed.

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 mathematical verb+resource ('least common multiple of the integers from lo through hi') with an unambiguous domain, distinguishing it from siblings like ip_range_merge or abundancy without needing the schema.

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?

Supplies two worked examples (LCM 1-10 = 2520, LCM 1-11 = 27720) and a hard precondition ('lo must not pass hi') plus the 1-40 bounds, which tells the agent when the call is valid. It does not name an alternative tool for out-of-range or single-value cases, so it stops short of explicit when-not guidance.

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