# magent Clinical Calculators & Medical Code Lookup — Ping/Payment Smoke Test

> magent Clinical Calculators & Medical Code Lookup — Ping/Payment Smoke Test is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Health check and payment smoke test endpoint that verifies connectivity and USDC micropayment processing on Base via x402 for the magent clinical calculator suite

## Facts

- Endpoint: GET https://api.magentlab.com/v1/tools/ping
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-clinical-calculators-medical-code-lookup-ping-payment-smoke-test-6b695fd2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GIWbcph3ixfv1WqC1QwrP

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 magent-clinical-calculators-medical-code-lookup-ping-payment-smoke-test-6b695fd2
```

Example prompt: Before we start running any of those clinical calculators, can you do a quick ping on the magent API to confirm it's reachable and the USDC payment channel is working?

## When to prefer this

Use this endpoint when you need to verify that the magent API infrastructure is reachable and that x402 USDC micropayment processing is functioning before invoking any of the substantive clinical calculator or medical code lookup endpoints. It is the lowest-cost ($0.001 USDC) way to validate the full payment and connectivity stack.

## Known failure modes

- Network timeout if api.magentlab.com is unreachable
- x402 payment failure if USDC wallet has insufficient balance or Base network is congested
- 402 Payment Required if payment header is malformed or missing
- Unexpected 500 if backend service is down

## How this service works

Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.

## Output

Returns a simple health/status response confirming the endpoint is reachable and that the x402 USDC micropayment on Base was processed successfully. No clinical data is returned; this is purely a connectivity and payment-flow verification response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "probe": {
   "type": "string",
   "description": "Ignored. Payment smoke test takes no input."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-clinical-calculators-medical-code-lookup-ping-payment-smoke-test-6b695fd2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
