# GCD & LCM Calculator

> GCD & LCM Calculator is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Computes the Greatest Common Divisor (GCD) and Least Common Multiple (LCM) for a given set of integers

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/math/gcd-lcm-calculator?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gcd-lcm-calculator-ce93e083
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MXQlso6wc20VRRi901ZrY

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gcd-lcm-calculator-ce93e083
```

Example prompt: What are the GCD and LCM of 48, 60, and 84?

## When to prefer this

Choose this endpoint when you need a fast, deterministic, pay-per-call computation of GCD and LCM with no API key or signup required. Ideal for AI agents operating autonomously with USDC micropayment capability on Base, especially when integrating number-theory operations into workflows without maintaining service credentials.

## Known failure modes

- Missing or malformed integer inputs result in a 400-level error
- Non-integer or non-numeric values may cause computation failure
- Payment not included or invalid x402 USDC payment returns 402 Payment Required
- Empty input list may return an error or undefined result

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

Returns a JSON object with ok:true and paid:true, along with the computed GCD and LCM values for the provided integers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gcd-lcm-calculator-ce93e083/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
