Skip to main content
Glama

calculate_pregnancy_due_date

Read-onlyIdempotent

Pregnancy due date calculator — Naegele rule

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": {
      "lastMenstrualPeriod": "<lastMenstrualPeriod>"
    },
    "name": "calculate_pregnancy_due_date"
  }
}

Input Schema

NameRequiredDescriptionDefault
referenceDateNoDate to measure the current week from, as YYYY-MM-DD. Default: today.
lastMenstrualPeriodYesFirst day of the last menstrual period as YYYY-MM-DD, for example 2026-03-01.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / lastMenstrualPeriod / description
      Added value: +"First day of the last menstrual period as YYYY-MM-DD, for example 2026-03-01."
    • addedInput schema / properties / referenceDate / description
      Added value: +"Date to measure the current week from, as YYYY-MM-DD. Default: today."
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is fully covered elsewhere. The description adds one genuinely useful behavioral fact — the Naegele rule — implying the estimate is derived from LMP plus a fixed gestational offset. It omits important caveats, such as assuming a regular 28-day cycle and that the result is an estimate only, and says nothing about what is returned.

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?

A single front-loaded fragment with zero filler, and the named method is the most informative part placed first. It is arguably too terse rather than verbose, but nothing in it is wasted.

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

Completeness3/5

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

For a two-parameter, read-only calculation tool with a fully documented schema and complete annotations, the description is close to sufficient. The remaining gap is that no output schema exists and the description never states what the calculation returns (due date versus current gestational week), which an agent may need to interpret 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%, with both lastMenstrualPeriod and referenceDate documented including format and a default, so the schema does the heavy lifting. The description adds no meaning beyond it, which is the expected baseline when coverage is complete.

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

Purpose4/5

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

Names a specific resource (pregnancy due date) and a specific method (Naegele rule), which clearly separates it from the calculate_age/calculate_bmi/calculate_loan siblings. It stops short of stating what it computes (an estimated delivery date from LMP), but the purpose is unambiguous.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no mention of prerequisites, and no routing to alternatives. The name is self-explanatory enough that an agent can infer usage, but the description itself supplies no guidance at all.

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