Pregnancy due date calculator
hopi_due_date_calculatorEstimate a pregnancy due date from the first day of the last menstrual period (LMP) and cycle length. Method: adjust the LMP by (cycle - 28) days, then add 280 days for the due date. Also returns the dates the second and third trimesters begin (LMP-adjusted + 84 and + 182 days). Dates are ISO 'YYYY-MM-DD'. Source: https://hopi.co.uk/due-date-calculator/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lmp": "<lmp>"
},
"name": "hopi_due_date_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lmp | Yes | First day of the last menstrual period, ISO date 'YYYY-MM-DD' | |
| cycleLength | No | Cycle length in days, 20 to 45 (default 28) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lmp | No | ||
| dueDate | No | ||
| summary | Yes | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) | |
| cycleLength | No | ||
| trimester2Starts | No | ||
| trimester3Starts | No |