# magent RBC ABO/Rh Compatibility Checker

> magent RBC ABO/Rh Compatibility Checker is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Determines AABB Standards 28th ed. Standard 5.14 compatibility between a red blood cell unit and a recipient based on ABO group and RhD type

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rbc_abo
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-rbc-abo-rh-compatibility-checker-f94a32d9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NRL9hcJ-mUatb1Ao09SBc

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-rbc-abo-rh-compatibility-checker-f94a32d9
```

Example prompt: Can you check if a group A RhD-negative RBC unit is compatible with a group O RhD-negative recipient using AABB Standard 5.14 rules?

## When to prefer this

Use this endpoint when you need a quick, standards-based (AABB 28th ed. Standard 5.14) ABO and RhD compatibility check for red blood cell units only. It is ideal for automated pre-transfusion workflows where the caller has already determined blood types and needs a programmatic compatibility decision. Do not use for plasma or platelet compatibility, emergency RhD override scenarios, or when blood typing itself is needed.

## Known failure modes

- Missing required query parameters (recipient_abo, recipient_rhd, unit_abo, unit_rhd) returns an error
- Invalid enum values (e.g. 'type_a' instead of 'a') return a validation error
- Payment failure via x402 protocol returns 402 status
- Does not encode emergency exceptions for RhD-positive units to RhD-negative recipients
- Does not apply to plasma or platelet compatibility — results for those would be clinically incorrect

## How this service works

AABB Standards 28th ed. Standard 5.14 RBC ABO/Rh compatibility from caller-assigned recipient and unit ABO (o, a, b, ab) and RhD (positive, negative). Group O RBCs to O/A/B/AB; A to A/AB; B to B/AB; AB to AB. RhD-negative units to either RhD; RhD-positive units only to RhD-positive recipients. Not a transfusion order. magent does not type blood. Does not encode emergency RhD-positive-to-negative exceptions, plasma, or platelets.

## Output

Returns a compatibility determination (compatible or incompatible) for the given RBC unit and recipient pairing based on AABB Standards 28th edition Standard 5.14 ABO and RhD rules. ABO compatibility follows universal donor/recipient rules (O to any, A to A/AB, B to B/AB, AB to AB); RhD-negative units are compatible with either RhD type, while RhD-positive units are only compatible with RhD-positive recipients.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "recipient_abo",
      "recipient_rhd",
      "unit_abo",
      "unit_rhd"
     ],
     "properties": {
      "unit_abo": {
       "enum": [
        "o",
        "a",
        "b",
        "ab"
       ],
       "type": "string",
       "description": "Caller-assigned RBC unit ABO group: o, a, b, or ab (case-insensitive). Required. magent does not type blood."
      },
      "unit_rhd": {
       "enum": [
        "positive",
        "negative"
       ],
       "type": "string",
       "description": "Caller-assigned RBC unit RhD: positive or negative (case-insensitive). Required. magent does not type blood."
      },
      "recipient_abo": {
       "enum": [
        "o",
        "a",
        "b",
        "ab"
       ],
       "type": "string",
       "description": "Caller-assigned recipient ABO group: o, a, b, or ab (case-insensitive). Required. magent does not type blood."
      },
      "recipient_rhd": {
       "enum": [
        "positive",
        "negative"
       ],
       "type": "string",
       "description": "Caller-assigned recipient RhD: positive or negative (case-insensitive). Required. magent does not type blood."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-rbc-abo-rh-compatibility-checker-f94a32d9/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)
