# SignalDesk AI – GCD (Greatest Common Divisor) Calculator

> SignalDesk AI – GCD (Greatest Common Divisor) Calculator is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Computes the greatest common divisor (GCD) of two integers via a paid API call.

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/math/gcd?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signaldesk-ai-gcd-greatest-common-divisor-calculator-6b7698c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hDT6CCQIXPS8aFJ9wj6HM

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 signaldesk-ai-gcd-greatest-common-divisor-calculator-6b7698c8 -d '<json body>'
```

Example prompt: What is the greatest common divisor of 48 and 18?

## When to prefer this

Choose this endpoint when you need a quick, programmatic GCD computation for two integers within the ±1 billion range and are already operating within an x402 micropayment-enabled workflow. It is purpose-built for number theory tasks and is far simpler than embedding a general-purpose math engine.

## Known failure modes

- Input integers outside the range -1,000,000,000 to 1,000,000,000 will be rejected with a validation error
- Non-integer or missing values for 'a' or 'b' will cause a 400-level error
- Payment failure via x402 protocol will result in a 402 Payment Required response
- Both inputs being zero is mathematically undefined and may return an error or zero

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

Returns a JSON object with a single field 'gcd' containing the integer greatest common divisor of the two provided integers. Example: {"gcd": 6}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "integer",
   "maximum": 1000000000,
   "minimum": -1000000000,
   "description": "First integer."
  },
  "b": {
   "type": "integer",
   "maximum": 1000000000,
   "minimum": -1000000000,
   "description": "Second integer."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "gcd": 6
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-gcd-greatest-common-divisor-calculator-6b7698c8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
