WebMCP Registry

date_duration

verifiedv0.1

Calculates days, weeks, months and optional business days between two calendar dates in the browser. Pass start and end as ISO yyyy-mm-dd (exactly 10 chars) plus optional inclusive and businessDays. Variant URLs are not a second machine Tool — pass inclusive and focus explicitly. Do not use this to add or subtract a duration from one date (that is date_add_subtract).

Updated 9/3/2026 · Created 9/3/2026

Input Schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "start",
    "end"
  ],
  "properties": {
    "end": {
      "$ref": "#/properties/start"
    },
    "focus": {
      "enum": [
        "duration",
        "days"
      ],
      "type": "string",
      "default": "duration"
    },
    "start": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10,
      "minLength": 10
    },
    "inclusive": {
      "type": "boolean",
      "default": false
    },
    "businessDays": {
      "type": "boolean",
      "default": false
    }
  },
  "additionalProperties": false
}

Full Contract

{
  "name": "date_duration",
  "description": "Calculates days, weeks, months and optional business days between two calendar dates in the browser. Pass start and end as ISO yyyy-mm-dd (exactly 10 chars) plus optional inclusive and businessDays. Variant URLs are not a second machine Tool — pass inclusive and focus explicitly. Do not use this to add or subtract a duration from one date (that is date_add_subtract).",
  "inputSchema": {
    "type": "object",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "required": [
      "start",
      "end"
    ],
    "properties": {
      "end": {
        "$ref": "#/properties/start"
      },
      "focus": {
        "enum": [
          "duration",
          "days"
        ],
        "type": "string",
        "default": "duration"
      },
      "start": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
        "maxLength": 10,
        "minLength": 10
      },
      "inclusive": {
        "type": "boolean",
        "default": false
      },
      "businessDays": {
        "type": "boolean",
        "default": false
      }
    },
    "additionalProperties": false
  }
}

GET /api/tool/simpletoolstack.com/date_duration