# Magent Apgar Score Calculator

> Magent Apgar Score Calculator 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-15).

Computes the Apgar score (0–10) by summing five newborn clinical signs each rated 0–2: appearance, pulse, grimace, activity, and respiration.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/apgar
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-apgar-score-calculator-7911b325
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tTMz4hWe-7lCcwhclqNos

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-apgar-score-calculator-7911b325
```

Example prompt: Calculate the Apgar score for a newborn with appearance 1, pulse 2, grimace 1, activity 2, and respiration 1 — give me the total score and the citation.

## When to prefer this

Use this endpoint when you need a fast, deterministic, citeable Apgar score computed from five pre-assessed 0–2 component values. It is ideal for clinical documentation tools, obstetric EMR integrations, medical education platforms, or any agent workflow that already has the five component assessments and needs the authoritative total with a published reference. It does not interpret the score diagnostically.

## Known failure modes

- Missing required query parameters (appearance, pulse, grimace, activity, or respiration) returns an error
- Values outside the valid range 0–2 for any parameter will likely produce an error or invalid result
- Non-integer values for any of the five parameters will fail schema validation
- Endpoint does not provide diagnostic interpretation — result is a score only

## How this service works

Apgar score from five 0-2 newborn signs (appearance, pulse, grimace, activity, respiration). Deterministic published score with citation; not a diagnosis.

## Output

Returns the total Apgar score (0–10) derived from summing the five caller-supplied component scores (each 0, 1, or 2), accompanied by the published citation for the scoring method. The result is deterministic and not a clinical diagnosis.

## 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": [
      "appearance",
      "pulse",
      "grimace",
      "activity",
      "respiration"
     ],
     "properties": {
      "pulse": {
       "type": "integer",
       "description": "Heart rate (P). Integer 0, 1, or 2 as assigned by the caller."
      },
      "grimace": {
       "type": "integer",
       "description": "Reflex irritability (G). Integer 0, 1, or 2 as assigned by the caller."
      },
      "activity": {
       "type": "integer",
       "description": "Muscle tone (A). Integer 0, 1, or 2 as assigned by the caller."
      },
      "appearance": {
       "type": "integer",
       "description": "Color (A). Integer 0, 1, or 2 as assigned by the caller."
      },
      "respiration": {
       "type": "integer",
       "description": "Respiratory effort (R). Integer 0, 1, or 2 as assigned by the caller."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/apgar",
  "count": 2,
  "items": [
   {
    "score": 8,
    "formula": "apgar",
    "citation": {
     "id": "apgar-1953",
     "doi": null,
     "title": "A proposal for a new method of evaluation of the newborn infant",
     "source": "Curr Res Anesth Analg. 1953;32(4):260-267",
     "authors": "Virginia Apgar"
    },
    "max_score": 10,
    "components": [
     {
      "value": 1,
      "factor": "appearance",
      "points": 1,
      "present": true
     },
     {
      "value": 2,
      "factor": "pulse",
      "points": 2,
      "present": true
     },
     {
      "value": 1,
      "factor": "grimace",
      "points": 1,
      "present": true
     },
     {
      "value": 2,
      "factor": "activity",
      "points": 2,
      "present": true
     },
     {
      "value": 2,
      "factor": "respiration",
      "points": 2,
      "present": true
     }
    ],
    "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
    "formula_expression": "APGAR = appearance + pulse + grimace + activity + respiration; each 0-2; max 10"
   },
   {
    "score": 8,
    "formula": "apgar",
    "citation": {
     "id": "apgar-1953",
     "doi": null,
     "title": "A proposal for a new method of evaluation of the newborn infant",
     "source": "Curr Res Anesth Analg. 1953;32(4):260-267",
     "authors": "Virginia Apgar"
    },
    "max_score": 10,
    "components": [
     {
      "value": 1,
      "factor": "appearance",
      "points": 1,
      "present": true
     },
     {
      "value": 2,
      "factor": "pulse",
      "points": 2,
      "present": true
     },
     {
      "value": 1,
      "factor": "grimace",
      "points": 1,
      "present": true
     },
     {
      "value": 2,
      "factor": "activity",
      "points": 2,
      "present": true
     },
     {
      "value": 2,
      "factor": "respiration",
      "points": 2,
      "present": true
     }
    ],
    "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
    "formula_expression": "APGAR = appearance + pulse + grimace + activity + respiration; each 0-2; max 10"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-apgar-score-calculator-7911b325/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)
