Skip to main content
Glama

Pregnancy Due Date Calculator API - LMP, conception or IVF transfer milestones

due_date_calculator
Read-onlyIdempotent

Calculate estimated pregnancy due date, current gestational age (weeks + days), trimester dates and key milestone weeks from last menstrual period (with custom cycle length), conception date, or Day 3/5/6 IVF transfer date. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/due-date-calculator.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "date": "2026-06-01",
      "method": "lmp",
      "asOfDate": "2026-11-20",
      "cycleDays": 28
    },
    "name": "due_date_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesReference date YYYY-MM-DD (first day of LMP, conception or IVF transfer)
methodNolmp (last period), conc (conception) or ivf (IVF transfer)lmp
asOfDateNoOptional date YYYY-MM-DD to evaluate gestational week (default today)
cycleDaysNoAverage menstrual cycle length in days (method=lmp)
embryoDayNoEmbryo age at transfer for method=ivf: 3, 5 or 65

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/openWorld/idempotent annotations, the description discloses execution location, a 5 calls/day per-IP free tier, and the two paid paths (X-API-Key from a pricing page, or $0.001/call via x402) — genuinely useful operational context. The claim that 'files are deleted right after the call' is boilerplate noise for a calculator that accepts no files and slightly muddies the privacy message.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The capability statement is front-loaded and dense with useful detail; pricing and auth follow in a compact block. The only clearly wasted sentence is the file-deletion/privacy line, which does not apply to a date calculator.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly names what comes back (due date, gestational age, trimester dates, milestone weeks), and it covers auth, quotas, and pricing. It does not describe the response shape or units of the returned fields, which leaves a small gap for an agent parsing results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and every parameter already carries an inline description plus an example object, so the schema does the heavy lifting. The description reinforces that cycleDays pairs with LMP and embryoDay with IVF, but adds no format, constraint, or interaction detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Calculate') and enumerates the exact outputs (due date, gestational age in weeks+days, trimester dates, milestone weeks) plus the three supported input methods. This is unmistakably distinct from generic siblings like date_calculator or age_calculator.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description makes the use case clear by naming the three dating methods (LMP with custom cycle length, conception, IVF transfer day 3/5/6), which tells an agent when this tool applies. It stops short of explicitly excluding or routing to siblings such as date_calculator or age_calculator.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources