WebMCP Registry

business_days

verifiedv0.1

Counts working days between two ISO dates or adds/subtracts business days from one date, excluding weekends and US/UK holidays in the browser. Pass mode count with start and end, or mode addSubtract with start and n (0–100000). Dates are YYYY-MM-DD (exactly 10 chars). Variant URLs are not a second machine Tool — pass country and mode explicitly. Do not use this for calendar duration including weekends (that is date_duration).

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

Input Schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "n": {
      "type": "integer",
      "maximum": 100000,
      "minimum": 0
    },
    "end": {
      "$ref": "#/properties/start"
    },
    "mode": {
      "enum": [
        "count",
        "addSubtract"
      ],
      "type": "string",
      "default": "count"
    },
    "start": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10,
      "minLength": 10
    },
    "country": {
      "enum": [
        "US",
        "UK",
        "generic"
      ],
      "type": "string",
      "default": "generic"
    },
    "direction": {
      "enum": [
        "add",
        "subtract"
      ],
      "type": "string",
      "default": "add"
    }
  },
  "additionalProperties": false
}

Full Contract

{
  "name": "business_days",
  "description": "Counts working days between two ISO dates or adds/subtracts business days from one date, excluding weekends and US/UK holidays in the browser. Pass mode count with start and end, or mode addSubtract with start and n (0–100000). Dates are YYYY-MM-DD (exactly 10 chars). Variant URLs are not a second machine Tool — pass country and mode explicitly. Do not use this for calendar duration including weekends (that is date_duration).",
  "inputSchema": {
    "type": "object",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {
      "n": {
        "type": "integer",
        "maximum": 100000,
        "minimum": 0
      },
      "end": {
        "$ref": "#/properties/start"
      },
      "mode": {
        "enum": [
          "count",
          "addSubtract"
        ],
        "type": "string",
        "default": "count"
      },
      "start": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
        "maxLength": 10,
        "minLength": 10
      },
      "country": {
        "enum": [
          "US",
          "UK",
          "generic"
        ],
        "type": "string",
        "default": "generic"
      },
      "direction": {
        "enum": [
          "add",
          "subtract"
        ],
        "type": "string",
        "default": "add"
      }
    },
    "additionalProperties": false
  }
}

GET /api/tool/simpletoolstack.com/business_days