Skip to main content
Glama

Pregnancy due date

calc_due_date
Read-onlyIdempotent

Estimate pregnancy due dates from last period, conception, or IVF transfer, and get gestational progress, conception date, milestones, and optional Hijri dates.

Instructions

Estimated pregnancy due date from the first day of the last period (Naegele's rule, adjusted for cycle length 20–45 days), the conception date, or an IVF embryo transfer date (day-3 or day-5 embryo). Also gives the estimated conception date, full-term date, how far along you are on a given day (weeks + days, trimester, days to go) and a dated timeline of common milestones (weeks 4–42), optionally with Hijri dates. Estimate only, not medical advice. Web version: https://s3eidat.github.io/due-date/

Input Schema

NameRequiredDescriptionDefault
dateYesThe date for that method, YYYY-MM-DD.
hijriNoAlso give Umm al-Qura Hijri dates.
todayNoWork out progress on this date, YYYY-MM-DD (default today).
methodNolmp = first day of last period; conception; ivf = embryo transfer date.lmp
cycleLengthNolmp: average cycle length in days (default 28).
ivfEmbryoDayNoivf: embryo age at transfer, day 3 or day 5.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/closed-world, so the safety profile is covered. The description adds valuable behavior beyond that: it lists what is returned (conception date, full-term date, weeks+days progress, trimester, days remaining, milestone timeline weeks 4–42, optional Hijri) and the disclaimer, though it stops short of describing response structure for the progress section.

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?

Dense but front-loaded: purpose first, then outputs, then the disclaimer and link. The enumerated output list is long but each item is informative; no filler sentences.

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

Completeness5/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 fully carries the burden by enumerating every returned artifact and the optional Hijri expansion, plus a scope disclaimer. An agent can call this correctly without further documentation.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description goes slightly beyond by naming Naegele's rule, the cycle-length range 20–45, and the day-3/day-5 embryo distinction, tying the parameters to their clinical meaning rather than just restating field names.

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+resource ('Estimated pregnancy due date') and enumerates the three accepted starting points (LMP, conception, IVF transfer), which clearly separates it from nearby siblings such as calc_age, calc_date_diff or calc_hijri.

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?

Explains which input method to pick and notes 'Estimate only, not medical advice,' which sets the appropriate use context. It does not explicitly name alternatives or exclusions (e.g., use calc_date_diff for plain date arithmetic), so it falls just short of a 5.

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

Deploy Server

Other Tools