# magent Pregnancy Due Date Calculator (ACOG 700 Naegele)

> magent Pregnancy Due Date Calculator (ACOG 700 Naegele) 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).

Calculates estimated due date (EDD) and gestational age from last menstrual period (LMP) using the ACOG Committee Opinion 700 Naegele formula adjusted for cycle length.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/pregnancy_due_dates
- 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-pregnancy-due-date-calculator-acog-700-naegele-65dcc0c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zpwJTXNhtNxbULbWKS6OG

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-pregnancy-due-date-calculator-acog-700-naegele-65dcc0c1
```

Example prompt: My patient's LMP started 84 days ago and she has a 30-day cycle — can you calculate her estimated due date and current gestational age using the ACOG Naegele formula?

## When to prefer this

Use this endpoint when you need a quick, formula-based EDD or gestational age computation grounded in ACOG Committee Opinion 700 and adjusted for non-28-day cycles. Prefer it over general-purpose date arithmetic because it correctly applies the Naegele cycle-length correction. Do not use it as a substitute for ultrasound dating, imaging interpretation, or clinical delivery planning.

## Known failure modes

- days_since_lmp outside 0–294 range is clamped or rejected
- cycle_length_days outside 21–35 range is clamped or rejected
- Missing required query parameters returns an error
- Non-integer inputs rejected by schema validation

## How this service works

Pregnancy estimated due date from a certain LMP using ACOG Committee Opinion 700 Naegele: edd_days_from_lmp = 280 + (cycle_length_days - 28). Inputs are numeric days_since_lmp (0-294) and cycle_length_days (21-35); those bands are magent clamps. Reports gestational_age_days and days_until_edd (negative if past EDD). Not a dating ultrasound. magent does not interpret imaging. Not a delivery date order.

## Output

Returns gestational_age_days (completed days of gestation since LMP) and days_until_edd (days remaining until estimated due date; negative values indicate the EDD has already passed), computed using the ACOG 700 Naegele formula: EDD = LMP + 280 + (cycle_length_days − 28).

## 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": [
      "days_since_lmp",
      "cycle_length_days"
     ],
     "properties": {
      "days_since_lmp": {
       "type": "integer",
       "description": "Completed days since the first day of a certain last menstrual period (integer 0-294 inclusive). magent clamp; ACOG 700 publishes the 280-day Naegele interval, not this input band. Numeric days only. Not a calendar date."
      },
      "cycle_length_days": {
       "type": "integer",
       "description": "Usual cycle length in days (integer 21-35 inclusive). magent clamp; ACOG 700 adjusts the 280-day interval by (cycle_length_days - 28) and does not publish this input band. 28 is the Naegele reference cycle."
      }
     }
    }
   },
   "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-pregnancy-due-date-calculator-acog-700-naegele-65dcc0c1/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)
