ClockCrest time tools

Time zones, holidays, business days, calendars, sun, moon, prayer times, weather and market hours.

使うべきか

品質と安全性

A
説明の品質
100%
スキーマの完全性
98%
命名の品質
100%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~16,323トークン数(ツール定義)
~9.6 KB一般的なレスポンスサイズ
注意への影響は大きい(128k コンテキストの 12.75%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

{
  "mcpServers": {
    "time-tools": {
      "url": "https://clockcrest.com/mcp"
    }
  }
}

リモートエンドポイント

https://clockcrest.com/mcpstreamable-http

できること

ツール一覧

ツール(16)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
🟢get_current_time(tz)

Current date and time in an IANA time zone, with its UTC offset, abbreviation, whether daylight saving time is in effect, and the next offset change. Use find_timezone first if you only have a city or country name.

入力スキーマ

{
  "type": "object",
  "properties": {
    "tz": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_+\\-/]+$",
      "description": "IANA time zone name, e.g. Europe/Paris"
    }
  },
  "required": [
    "tz"
  ],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "timeZone": {
      "type": "string",
      "description": "IANA time zone name"
    },
    "local": {
      "type": "string",
      "description": "Wall-clock time without an offset, YYYY-MM-DDTHH:MM:SS",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
    },
    "iso": {
      "type": "string",
      "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
    },
    "utcOffset": {
      "type": "string",
      "description": "UTC offset, ±HH:MM",
      "pattern": "^[+-]\\d{2}:\\d{2}$"
    },
    "utcOffsetMinutes": {
      "type": "integer",
      "description": "UTC offset in minutes, east positive"
    },
    "abbreviation": {
      "type": "string",
      "description": "Short zone name from CLDR (\"CET\"), or \"GMT+9\" where none exists"
    },
    "isDst": {
      "type": "boolean",
      "description": "Whether daylight saving time is in effect"
    },
    "utc": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
    },
    "unixMs": {
      "type": "integer",
      "description": "Milliseconds since 1970-01-01T00:00:00Z"
    },
    "nextTransition": {
      "anyOf": [
        {
          "type": "object",
          "description": "Next change of UTC offset within about 400 days, to the minute",
          "properties": {
            "at": {
              "type": "string",
              "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
            },
            "utcOffsetBefore": {
              "type": "string",
              "description": "UTC offset, ±HH:MM",
              "pattern": "^[+-]\\d{2}:\\d{2}$"
            },
            "utcOffsetAfter": {
              "type": "string",
              "description": "UTC offset, ±HH:MM",
              "pattern": "^[+-]\\d{2}:\\d{2}$"
            }
          },
          "required": [
            "at",
            "utcOffsetBefore",
            "utcOffsetAfter"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    }
  },
  "required": [
    "timeZone",
    "local",
    "iso",
    "utcOffset",
    "utcOffsetMinutes",
    "abbreviation",
    "isDst",
    "utc",
    "unixMs",
    "nextTransition",
    "source"
  ],
  "additionalProperties": false
}
🟢convert_timezone(from, to, time, overlap)

Converts a wall-clock time from one IANA time zone to another. Says explicitly how a non-existent (daylight-saving gap) or repeated (overlap) time was resolved.

入力スキーマ

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_+\\-/]+$",
      "description": "Source IANA time zone, e.g. America/New_York"
    },
    "to": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_+\\-/]+$",
      "description": "Target IANA time zone, e.g. Asia/Tokyo"
    },
    "time": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2})?$",
      "description": "Wall-clock time in the source zone, YYYY-MM-DDTHH:MM or YYYY-MM-DDTHH:MM:SS, without a UTC offset (1970–2100)"
    },
    "overlap": {
      "type": "string",
      "enum": [
        "earlier",
        "later"
      ],
      "default": "earlier",
      "description": "Which occurrence to use when the time happens twice. Default: earlier."
    }
  },
  "required": [
    "from",
    "to",
    "time"
  ],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "input": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "description": "IANA time zone name"
        },
        "to": {
          "type": "string",
          "description": "IANA time zone name"
        },
        "time": {
          "type": "string",
          "description": "Wall-clock time without an offset, YYYY-MM-DDTHH:MM:SS",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
        }
      },
      "required": [
        "from",
        "to",
        "time"
      ],
      "additionalProperties": false
    },
    "from": {
      "type": "object",
      "description": "One instant as it reads on the clocks of a time zone.",
      "properties": {
        "timeZone": {
          "type": "string",
          "description": "IANA time zone name"
        },
        "local": {
          "type": "string",
          "description": "Wall-clock time without an offset, YYYY-MM-DDTHH:MM:SS",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
        },
        "iso": {
          "type": "string",
          "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
        },
        "utcOffset": {
          "type": "string",
          "description": "UTC offset, ±HH:MM",
          "pattern": "^[+-]\\d{2}:\\d{2}$"
        },
        "utcOffsetMinutes": {
          "type": "integer",
          "description": "UTC offset in minutes, east positive"
        },
        "abbreviation": {
          "type": "string",
          "description": "Short zone name from CLDR (\"CET\"), or \"GMT+9\" where none exists"
        },
        "isDst": {
          "type": "boolean",
          "description": "Whether daylight saving time is in effect"
        }
      },
      "required": [
        "timeZone",
        "local",
        "iso",
        "utcOffset",
        "utcOffsetMinutes",
        "abbreviation",
        "isDst"
      ],
      "additionalProperties": false
    },
    "to": {
      "type": "object",
      "description": "One instant as it reads on the clocks of a time zone.",
      "properties": {
        "timeZone": {
          "type": "string",
          "description": "IANA time zone name"
        },
        "local": {
          "type": "string",
          "description": "Wall-clock time without an offset, YYYY-MM-DDTHH:MM:SS",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
        },
        "iso": {
          "type": "string",
          "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
        },
        "utcOffset": {
          "type": "string",
          "description": "UTC offset, ±HH:MM",
          "pattern": "^[+-]\\d{2}:\\d{2}$"
        },
        "utcOffsetMinutes": {
          "type": "integer",
          "description": "UTC offset in minutes, east positive"
        },
        "abbreviation": {
          "type": "string",
          "description": "Short zone name from CLDR (\"CET\"), or \"GMT+9\" where none exists"
        },
        "isDst": {
          "type": "boolean",
          "description": "Whether daylight saving time is in effect"
        }
      },
      "required": [
        "timeZone",
        "local",
        "iso",
        "utcOffset",
        "utcOffsetMinutes",
        "abbreviation",
        "isDst"
      ],
      "additionalProperties": false
    },
    "utc": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
    },
    "resolution": {
      "type": "string",
      "description": "How the source wall-clock time was resolved",
      "enum": [
        "exact",
        "gap_shifted_forward",
        "overlap_earlier",
        "overlap_later"
      ]
    },
    "note": {
      "type": "string"
    },
    "occurrences": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
      },
      "description": "Both occurrences, when the source time happens twice"
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    }
  },
  "required": [
    "input",
    "from",
    "to",
    "utc",
    "resolution",
    "note",
    "source"
  ],
  "additionalProperties": false
}
🟢find_timezone(q, limit)

Finds the IANA time zone of a city or country from its name (English, Arabic or local spelling) and returns the current local time there. Countries with several zones list each zone with its largest cities.

入力スキーマ

{
  "type": "object",
  "properties": {
    "q": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "City or country name (any language the index knows, e.g. Cairo, القاهرة, Le Caire) or an ISO country code"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10,
      "description": "Maximum number of city matches (1–10). Default 5.",
      "default": 5
    }
  },
  "required": [
    "q"
  ],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "at": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
    },
    "countries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code",
            "pattern": "^[A-Z]{2}$"
          },
          "name": {
            "type": "string"
          },
          "timeZones": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "timeZone": {
                  "type": "string",
                  "description": "IANA time zone name"
                },
                "utcOffset": {
                  "type": "string",
                  "description": "UTC offset, ±HH:MM",
                  "pattern": "^[+-]\\d{2}:\\d{2}$"
                },
                "utcOffsetMinutes": {
                  "type": "integer"
                },
                "isDst": {
                  "type": "boolean"
                },
                "cityCount": {
                  "type": "integer",
                  "description": "GeoNames cities of 15,000+ people in this zone"
                },
                "largestCities": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "slug": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "url": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "slug",
                      "url"
                    ],
                    "additionalProperties": false
                  }
                },
                "local": {
                  "type": "string",
                  "description": "Wall-clock time without an offset, YYYY-MM-DDTHH:MM:SS",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
                }
              },
              "required": [
                "timeZone",
                "utcOffset",
                "utcOffsetMinutes",
                "isDst",
                "cityCount",
                "largestCities",
                "local"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "code",
          "name",
          "timeZones"
        ],
        "additionalProperties": false
      }
    },
    "cities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Main (English / international) name"
          },
          "nameAr": {
            "anyOf": [
              {
                "type": "string",
                "description": "Arabic name, when the index has one"
              },
              {
                "type": "null"
              }
            ]
          },
          "alternateNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Alternate names kept in the index: Arabic first, then the local-language name and other common spellings"
          },
          "country": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code",
            "pattern": "^[A-Z]{2}$"
          },
          "countryName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "timeZone": {
            "type": "string",
            "description": "IANA time zone name"
          },
          "lat": {
            "type": "number",
            "description": "Latitude, decimal degrees"
          },
          "lon": {
            "type": "number",
            "description": "Longitude, decimal degrees"
          },
          "population": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "slug": {
            "anyOf": [
              {
                "type": "string",
                "description": "Slug of the city page on clockcrest.com, when it has one"
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "anyOf": [
              {
                "type": "string",
                "description": "URL of that page"
              },
              {
                "type": "null"
              }
            ]
          },
          "matchedName": {
            "type": "string",
            "description": "The alternate name the query matched, when it was not the main name"
          },
          "utcOffset": {
            "anyOf": [
              {
                "type": "string",
                "description": "UTC offset, ±HH:MM",
                "pattern": "^[+-]\\d{2}:\\d{2}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "local": {
            "anyOf": [
              {
                "type": "string",
                "description": "Wall-clock time without an offset, YYYY-MM-DDTHH:MM:SS",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "name",
          "nameAr",
          "alternateNames",
          "country",
          "countryName",
          "timeZone",
          "lat",
          "lon",
          "population",
          "slug",
          "url",
          "utcOffset",
          "local"
        ],
        "additionalProperties": false
      }
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    },
    "sourceUrl": {
      "type": "string"
    },
    "license": {
      "type": "string"
    },
    "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "timeZoneSource": {
      "type": "string"
    }
  },
  "required": [
    "query",
    "at",
    "countries",
    "cities",
    "notes",
    "source",
    "sourceUrl",
    "license",
    "lastUpdated",
    "timeZoneSource"
  ],
  "additionalProperties": false
}
🟢search_city(q, limit, country)

Searches about 34,000 world cities by name (any case, accents optional, Arabic and local names understood) and returns each match's country, IANA time zone, coordinates and population. Use the coordinates and zone with get_sunrise_sunset or get_prayer_times.

入力スキーマ

{
  "type": "object",
  "properties": {
    "q": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "City name or the beginning of one, e.g. cairo, münchen, القاهرة"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 25,
      "description": "Maximum number of results (1–25). Default 8.",
      "default": 8
    },
    "country": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "pattern": "^[A-Za-z]{2}$",
      "description": "Only cities of this country (ISO 3166-1 alpha-2), e.g. EG"
    }
  },
  "required": [
    "q"
  ],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "country": {
      "anyOf": [
        {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 country code",
          "pattern": "^[A-Z]{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "count": {
      "type": "integer"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Main (English / international) name"
          },
          "nameAr": {
            "anyOf": [
              {
                "type": "string",
                "description": "Arabic name, when the index has one"
              },
              {
                "type": "null"
              }
            ]
          },
          "alternateNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Alternate names kept in the index: Arabic first, then the local-language name and other common spellings"
          },
          "country": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code",
            "pattern": "^[A-Z]{2}$"
          },
          "countryName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "timeZone": {
            "type": "string",
            "description": "IANA time zone name"
          },
          "lat": {
            "type": "number",
            "description": "Latitude, decimal degrees"
          },
          "lon": {
            "type": "number",
            "description": "Longitude, decimal degrees"
          },
          "population": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "slug": {
            "anyOf": [
              {
                "type": "string",
                "description": "Slug of the city page on clockcrest.com, when it has one"
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "anyOf": [
              {
                "type": "string",
                "description": "URL of that page"
              },
              {
                "type": "null"
              }
            ]
          },
          "matchedName": {
            "type": "string",
            "description": "The alternate name the query matched, when it was not the main name"
          }
        },
        "required": [
          "name",
          "nameAr",
          "alternateNames",
          "country",
          "countryName",
          "timeZone",
          "lat",
          "lon",
          "population",
          "slug",
          "url"
        ],
        "additionalProperties": false
      }
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    },
    "sourceUrl": {
      "type": "string"
    },
    "license": {
      "type": "string"
    },
    "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    }
  },
  "required": [
    "query",
    "country",
    "count",
    "results",
    "notes",
    "source",
    "sourceUrl",
    "license",
    "lastUpdated"
  ],
  "additionalProperties": false
}
🟢get_country_holidays(country, year)

Public holidays of a country for one year (2025–2028), including regional ones flagged with their subdivisions. Source: Nager.Date.

入力スキーマ

{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "pattern": "^[A-Za-z]{2}$",
      "description": "ISO 3166-1 alpha-2 country code, e.g. FR"
    },
    "year": {
      "type": "integer",
      "minimum": 2025,
      "maximum": 2028,
      "description": "Four-digit year with data (2025–2028)"
    }
  },
  "required": [
    "country",
    "year"
  ],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code",
      "pattern": "^[A-Z]{2}$"
    },
    "countryName": {
      "type": "string"
    },
    "year": {
      "type": "integer"
    },
    "count": {
      "type": "integer"
    },
    "holidays": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "Calendar date, YYYY-MM-DD",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "name": {
            "type": "string",
            "description": "English name"
          },
          "localName": {
            "type": "string"
          },
          "nationwide": {
            "type": "boolean",
            "description": "false = observed only in the listed subdivisions"
          },
          "types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subdivisions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "ISO 3166-2 codes, when not nationwide"
          }
        },
        "required": [
          "date",
          "name",
          "localName",
          "nationwide",
          "types"
        ],
        "additionalProperties": false
      }
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    },
    "sourceUrl": {
      "type": "string"
    },
    "dataYears": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "description": "Years the holiday data covers for this country."
    },
    "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    }
  },
  "required": [
    "country",
    "countryName",
    "year",
    "count",
    "holidays",
    "source",
    "sourceUrl",
    "dataYears",
    "lastUpdated"
  ],
  "additionalProperties": false
}
🟢calculate_business_days(country, start, end)

Business days between two dates (both inclusive) in a country, excluding its weekend days and nationwide public holidays. Lists the holidays that were excluded. Holiday data covers 2025–2028.

入力スキーマ

{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "pattern": "^[A-Za-z]{2}$",
      "description": "ISO 3166-1 alpha-2 country code, e.g. FR"
    },
    "start": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "First day, YYYY-MM-DD"
    },
    "end": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Last day (inclusive), YYYY-MM-DD; at most 1500 days after start"
    }
  },
  "required": [
    "country",
    "start",
    "end"
  ],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code",
      "pattern": "^[A-Z]{2}$"
    },
    "countryName": {
      "type": "string"
    },
    "start": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "end": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "endInclusive": {
      "type": "boolean"
    },
    "calendarDays": {
      "type": "integer"
    },
    "businessDays": {
      "type": "integer"
    },
    "weekend": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "English weekday name",
        "enum": [
          "Sunday",
          "Monday",
          "Tuesday",
          "Wednesday",
          "Thursday",
          "Friday",
          "Saturday"
        ]
      }
    },
    "holidaysExcluded": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "Calendar date, YYYY-MM-DD",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "name": {
            "type": "string",
            "description": "English name"
          },
          "localName": {
            "type": "string"
          }
        },
        "required": [
          "date",
          "name",
          "localName"
        ],
        "additionalProperties": false
      },
      "description": "Nationwide holidays that removed a working day"
    },
    "holidaysOnWeekend": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "Calendar date, YYYY-MM-DD",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "name": {
            "type": "string",
            "description": "English name"
          },
          "localName": {
            "type": "string"
          }
        },
        "required": [
          "date",
          "name",
          "localName"
        ],
        "additionalProperties": false
      },
      "description": "Nationwide holidays that fall on a weekend day anyway"
    },
    "rules": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    },
    "sourceUrl": {
      "type": "string"
    },
    "dataYears": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "description": "Years the holiday data covers for this country."
    },
    "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    }
  },
  "required": [
    "country",
    "countryName",
    "start",
    "end",
    "endInclusive",
    "calendarDays",
    "businessDays",
    "weekend",
    "holidaysExcluded",
    "holidaysOnWeekend",
    "rules",
    "source",
    "sourceUrl",
    "dataYears",
    "lastUpdated"
  ],
  "additionalProperties": false
}
🟢add_business_days(country, start, days)

Finds the date that is N business days after (or, with a negative N, before) a start date in a country, skipping its weekend days and nationwide public holidays. Holiday data covers 2025–2028; a calculation that leaves those years is refused rather than guessed.

入力スキーマ

{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "pattern": "^[A-Za-z]{2}$",
      "description": "ISO 3166-1 alpha-2 country code, e.g. FR"
    },
    "start": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Start date, YYYY-MM-DD"
    },
    "days": {
      "type": "integer",
      "minimum": -1000,
      "maximum": 1000,
      "description": "Business days to add; negative to go back (−1000 to 1000)"
    }
  },
  "required": [
    "country",
    "start",
    "days"
  ],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code",
      "pattern": "^[A-Z]{2}$"
    },
    "countryName": {
      "type": "string"
    },
    "start": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "startWeekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
      ]
    },
    "startIsBusinessDay": {
      "type": "boolean"
    },
    "days": {
      "type": "integer"
    },
    "result": {
      "type": "string",
      "description": "The business day reached",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "resultWeekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
      ]
    },
    "calendarDays": {
      "type": "integer",
      "description": "Signed calendar days from start to result"
    },
    "weekend": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "English weekday name",
        "enum": [
          "Sunday",
          "Monday",
          "Tuesday",
          "Wednesday",
          "Thursday",
          "Friday",
          "Saturday"
        ]
      }
    },
    "holidaysSkipped": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "Calendar date, YYYY-MM-DD",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "name": {
            "type": "string",
            "description": "English name"
          },
          "localName": {
            "type": "string"
          }
        },
        "required": [
          "date",
          "name",
          "localName"
        ],
        "additionalProperties": false
      },
      "description": "Nationwide holidays on working weekdays that were stepped over"
    },
    "rules": {
      "type": "string"
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    },
    "sourceUrl": {
      "type": "string"
    },
    "dataYears": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "description": "Years the holiday data covers for this country."
    },
    "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    }
  },
  "required": [
    "country",
    "countryName",
    "start",
    "startWeekday",
    "startIsBusinessDay",
    "days",
    "result",
    "resultWeekday",
    "calendarDays",
    "weekend",
    "holidaysSkipped",
    "rules",
    "notes",
    "source",
    "sourceUrl",
    "dataYears",
    "lastUpdated"
  ],
  "additionalProperties": false
}
🟢get_calendar(year, month, country)

A month as a grid of ISO weeks (Monday first) with ISO week numbers; with a country, its weekend days and public holidays are marked and the business days of the month are counted.

入力スキーマ

{
  "type": "object",
  "properties": {
    "year": {
      "type": "integer",
      "minimum": 1900,
      "maximum": 2100,
      "description": "Four-digit year (1900–2100; with a country, a year that has holiday data)"
    },
    "month": {
      "type": "integer",
      "minimum": 1,
      "maximum": 12,
      "description": "Month number, 1–12"
    },
    "country": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "pattern": "^[A-Za-z]{2}$",
      "description": "Mark this country's weekend and public holidays (ISO 3166-1 alpha-2)"
    }
  },
  "required": [
    "year",
    "month"
  ],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "year": {
      "type": "integer"
    },
    "month": {
      "type": "integer",
      "minimum": 1,
      "maximum": 12
    },
    "monthName": {
      "type": "string"
    },
    "country": {
      "anyOf": [
        {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 country code",
          "pattern": "^[A-Z]{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "countryName": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "weekStart": {
      "type": "string",
      "const": "Monday"
    },
    "weekend": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "English weekday name",
        "enum": [
          "Sunday",
          "Monday",
          "Tuesday",
          "Wednesday",
          "Thursday",
          "Friday",
          "Saturday"
        ]
      }
    },
    "daysInMonth": {
      "type": "integer"
    },
    "businessDays": {
      "type": "integer"
    },
    "weeks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "isoWeek": {
            "type": "integer"
          },
          "isoWeekYear": {
            "type": "integer"
          },
          "days": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "description": "Calendar date, YYYY-MM-DD",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                    },
                    "day": {
                      "type": "integer"
                    },
                    "weekday": {
                      "type": "string",
                      "description": "English weekday name",
                      "enum": [
                        "Sunday",
                        "Monday",
                        "Tuesday",
                        "Wednesday",
                        "Thursday",
                        "Friday",
                        "Saturday"
                      ]
                    },
                    "isWeekend": {
                      "type": "boolean"
                    },
                    "holidays": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "localName": {
                            "type": "string"
                          },
                          "nationwide": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "name",
                          "localName",
                          "nationwide"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "date",
                    "day",
                    "weekday",
                    "isWeekend",
                    "holidays"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "description": "Seven cells, Monday first; null pads the weeks at either end of the month"
          }
        },
        "required": [
          "isoWeek",
          "isoWeekYear",
          "days"
        ],
        "additionalProperties": false
      }
    },
    "holidays": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "Calendar date, YYYY-MM-DD",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "name": {
            "type": "string",
            "description": "English name"
          },
          "localName": {
            "type": "string"
          },
          "nationwide": {
            "type": "boolean",
            "description": "false = observed only in the listed subdivisions"
          },
          "types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subdivisions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "ISO 3166-2 codes, when not nationwide"
          }
        },
        "required": [
          "date",
          "name",
          "localName",
          "nationwide",
          "types"
        ],
        "additionalProperties": false
      }
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    },
    "sourceUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "dataYears": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "Years the holiday data covers for this country."
        },
        {
          "type": "null"
        }
      ]
    },
    "lastUpdated": {
      "anyOf": [
        {
          "type": "string",
          "description": "Date the underlying data set was last generated or checked.",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "year",
    "month",
    "monthName",
    "country",
    "countryName",
    "weekStart",
    "weekend",
    "daysInMonth",
    "businessDays",
    "weeks",
    "holidays",
    "notes",
    "source",
    "sourceUrl",
    "dataYears",
    "lastUpdated"
  ],
  "additionalProperties": false
}
🟢convert_calendar(date, from, to)

Converts a date between the Gregorian, Hijri (Umm al-Qura), Persian (Solar Hijri) and Hebrew calendars. Hijri results are the calculated Umm al-Qura calendar: the day a religious month really begins depends on local moon sighting and can differ by a day or two.

入力スキーマ

{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Date in the source calendar as year-month-day with a four-digit year, e.g. 2026-12-01 or 1448-09-01"
    },
    "from": {
      "type": "string",
      "enum": [
        "gregorian",
        "islamic-umalqura",
        "persian",
        "hebrew"
      ],
      "description": "Source calendar"
    },
    "to": {
      "type": "string",
      "enum": [
        "gregorian",
        "islamic-umalqura",
        "persian",
        "hebrew"
      ],
      "description": "Target calendar"
    }
  },
  "required": [
    "date",
    "from",
    "to"
  ],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "input": {
      "type": "object",
      "properties": {
        "calendar": {
          "type": "string",
          "enum": [
            "gregorian",
            "islamic-umalqura",
            "persian",
            "hebrew"
          ]
        },
        "year": {
          "type": "integer"
        },
        "month": {
          "type": "integer",
          "description": "Position of the month in the year, 1-based"
        },
        "day": {
          "type": "integer"
        },
        "monthName": {
          "type": "string",
          "description": "English month name from CLDR"
        },
        "date": {
          "type": "string",
          "description": "year-month-day in that calendar, zero-padded",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        }
      },
      "required": [
        "calendar",
        "year",
        "month",
        "day",
        "monthName",
        "date"
      ],
      "additionalProperties": false
    },
    "result": {
      "type": "object",
      "properties": {
        "calendar": {
          "type": "string",
          "enum": [
            "gregorian",
            "islamic-umalqura",
            "persian",
            "hebrew"
          ]
        },
        "year": {
          "type": "integer"
        },
        "month": {
          "type": "integer",
          "description": "Position of the month in the year, 1-based"
        },
        "day": {
          "type": "integer"
        },
        "monthName": {
          "type": "string",
          "description": "English month name from CLDR"
        },
        "date": {
          "type": "string",
          "description": "year-month-day in that calendar, zero-padded",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        }
      },
      "required": [
        "calendar",
        "year",
        "month",
        "day",
        "monthName",
        "date"
      ],
      "additionalProperties": false
    },
    "gregorian": {
      "type": "string",
      "description": "The same day in the Gregorian calendar",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "weekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
      ]
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
    },
    "supportedCalendars": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    }
  },
  "required": [
    "input",
    "result",
    "gregorian",
    "weekday",
    "notes",
    "supportedCalendars",
    "source"
  ],
  "additionalProperties": false
}
🟢calculate_date_difference(start, end)

Number of days between two calendar dates (end minus start), also as weeks + days and as years, months and days. Leap years are handled.

入力スキーマ

{
  "type": "object",
  "properties": {
    "start": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "First date, YYYY-MM-DD"
    },
    "end": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Second date, YYYY-MM-DD"
    }
  },
  "required": [
    "start",
    "end"
  ],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "start": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "startWeekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
      ]
    },
    "end": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "endWeekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
      ]
    },
    "days": {
      "type": "integer",
      "description": "end − start in days; negative when end is before start"
    },
    "negative": {
      "type": "boolean"
    },
    "weeks": {
      "type": "object",
      "properties": {
        "weeks": {
          "type": "integer"
        },
        "days": {
          "type": "integer"
        }
      },
      "required": [
        "weeks",
        "days"
      ],
      "additionalProperties": false
    },
    "calendar": {
      "type": "object",
      "properties": {
        "years": {
          "type": "integer"
        },
        "months": {
          "type": "integer"
        },
        "days": {
          "type": "integer"
        }
      },
      "required": [
        "years",
        "months",
        "days"
      ],
      "additionalProperties": false
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    }
  },
  "required": [
    "start",
    "startWeekday",
    "end",
    "endWeekday",
    "days",
    "negative",
    "weeks",
    "calendar",
    "notes",
    "source"
  ],
  "additionalProperties": false
}
🟢add_duration(date, years, months, weeks, days)

Adds or subtracts years, months, weeks and days to a calendar date and returns the resulting date with its weekday and ISO week. Give at least one unit. Month ends are clamped (31 January + 1 month = 28 or 29 February).

入力スキーマ

{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Start date, YYYY-MM-DD"
    },
    "years": {
      "type": "integer",
      "minimum": -9999,
      "maximum": 9999,
      "description": "Years to add (may be negative)"
    },
    "months": {
      "type": "integer",
      "minimum": -120000,
      "maximum": 120000,
      "description": "Months to add (may be negative)"
    },
    "weeks": {
      "type": "integer",
      "minimum": -520000,
      "maximum": 520000,
      "description": "Weeks to add (may be negative)"
    },
    "days": {
      "type": "integer",
      "minimum": -3650000,
      "maximum": 3650000,
      "description": "Days to add (may be negative)"
    }
  },
  "required": [
    "date"
  ],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "weekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
      ]
    },
    "added": {
      "type": "object",
      "properties": {
        "years": {
          "type": "integer"
        },
        "months": {
          "type": "integer"
        },
        "weeks": {
          "type": "integer"
        },
        "days": {
          "type": "integer"
        }
      },
      "required": [
        "years",
        "months",
        "weeks",
        "days"
      ],
      "additionalProperties": false
    },
    "result": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "resultWeekday": {
      "type": "string",
      "description": "English weekday name",
      "enum": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
      ]
    },
    "resultIsoWeek": {
      "type": "integer"
    },
    "resultIsoWeekYear": {
      "type": "integer"
    },
    "daysBetween": {
      "type": "integer"
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    }
  },
  "required": [
    "date",
    "weekday",
    "added",
    "result",
    "resultWeekday",
    "resultIsoWeek",
    "resultIsoWeekYear",
    "daysBetween",
    "notes",
    "source"
  ],
  "additionalProperties": false
}
🟢get_sunrise_sunset(lat, lon, date, tz)

Sunrise, sunset, solar noon, day length and twilight times for coordinates on a date, in the given time zone. Reports polar day or polar night explicitly instead of inventing times. Use search_city to get coordinates and the zone of a city.

入力スキーマ

{
  "type": "object",
  "properties": {
    "lat": {
      "type": "number",
      "minimum": -90,
      "maximum": 90,
      "description": "Latitude in decimal degrees, north positive (−90 to 90)"
    },
    "lon": {
      "type": "number",
      "minimum": -180,
      "maximum": 180,
      "description": "Longitude in decimal degrees, east positive (−180 to 180)"
    },
    "date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Local date at the place, YYYY-MM-DD (1900–2100)"
    },
    "tz": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_+\\-/]+$",
      "description": "IANA time zone of the place, e.g. Africa/Cairo"
    }
  },
  "required": [
    "lat",
    "lon",
    "date",
    "tz"
  ],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "lat": {
      "type": "number"
    },
    "lon": {
      "type": "number"
    },
    "timeZone": {
      "type": "string",
      "description": "IANA time zone name"
    },
    "sunrise": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "utc": {
              "type": "string",
              "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
            },
            "local": {
              "type": "string",
              "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
            }
          },
          "required": [
            "utc",
            "local"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "sunset": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "utc": {
              "type": "string",
              "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
            },
            "local": {
              "type": "string",
              "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
            }
          },
          "required": [
            "utc",
            "local"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "solarNoon": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "utc": {
              "type": "string",
              "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
            },
            "local": {
              "type": "string",
              "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
            }
          },
          "required": [
            "utc",
            "local"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "dayLengthSeconds": {
      "type": "integer"
    },
    "dayLength": {
      "type": "string",
      "description": "HH:MM:SS"
    },
    "polar": {
      "anyOf": [
        {
          "type": "string",
          "description": "\"day\": the Sun does not set; \"night\": it does not rise",
          "enum": [
            "day",
            "night"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "polarNote": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "twilight": {
      "type": "object",
      "properties": {
        "civil": {
          "type": "object",
          "properties": {
            "dawn": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "utc": {
                      "type": "string",
                      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                    },
                    "local": {
                      "type": "string",
                      "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
                    }
                  },
                  "required": [
                    "utc",
                    "local"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "dusk": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "utc": {
                      "type": "string",
                      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                    },
                    "local": {
                      "type": "string",
                      "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
                    }
                  },
                  "required": [
                    "utc",
                    "local"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "dawn",
            "dusk"
          ],
          "additionalProperties": false
        },
        "nautical": {
          "type": "object",
          "properties": {
            "dawn": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "utc": {
                      "type": "string",
                      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                    },
                    "local": {
                      "type": "string",
                      "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
                    }
                  },
                  "required": [
                    "utc",
                    "local"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "dusk": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "utc": {
                      "type": "string",
                      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                    },
                    "local": {
                      "type": "string",
                      "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
                    }
                  },
                  "required": [
                    "utc",
                    "local"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "dawn",
            "dusk"
          ],
          "additionalProperties": false
        },
        "astronomical": {
          "type": "object",
          "properties": {
            "dawn": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "utc": {
                      "type": "string",
                      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                    },
                    "local": {
                      "type": "string",
                      "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
                    }
                  },
                  "required": [
                    "utc",
                    "local"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "dusk": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "utc": {
                      "type": "string",
                      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                    },
                    "local": {
                      "type": "string",
                      "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
                    }
                  },
                  "required": [
                    "utc",
                    "local"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "dawn",
            "dusk"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "civil",
        "nautical",
        "astronomical"
      ],
      "additionalProperties": false
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    },
    "sourceUrl": {
      "type": "string"
    }
  },
  "required": [
    "date",
    "lat",
    "lon",
    "timeZone",
    "sunrise",
    "sunset",
    "solarNoon",
    "dayLengthSeconds",
    "dayLength",
    "polar",
    "polarNote",
    "twilight",
    "notes",
    "source",
    "sourceUrl"
  ],
  "additionalProperties": false
}
🟢get_moon_phase(date)

Phase of the Moon (name, illuminated fraction, age in days) now or on a date, plus the times of the next new moon, first quarter, full moon and last quarter in UTC.

入力スキーマ

{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Date, YYYY-MM-DD, evaluated at 12:00 UTC (1900–2100). Default: now."
    }
  },
  "required": [],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "date": {
      "anyOf": [
        {
          "type": "string",
          "description": "Calendar date, YYYY-MM-DD",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "at": {
      "type": "string",
      "description": "The instant the phase is computed for",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
    },
    "phase": {
      "type": "string",
      "enum": [
        "new",
        "waxing-crescent",
        "first-quarter",
        "waxing-gibbous",
        "full",
        "waning-gibbous",
        "last-quarter",
        "waning-crescent"
      ]
    },
    "phaseName": {
      "type": "string"
    },
    "illumination": {
      "type": "number",
      "description": "Illuminated fraction of the disc, 0–1",
      "minimum": 0,
      "maximum": 1
    },
    "illuminationPercent": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "ageDays": {
      "type": "number",
      "description": "Days since the last new moon"
    },
    "cycleAngle": {
      "type": "number",
      "description": "0 new, 90 first quarter, 180 full, 270 last quarter"
    },
    "waxing": {
      "type": "boolean"
    },
    "nextNewMoon": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
    },
    "nextFirstQuarter": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
    },
    "nextFullMoon": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
    },
    "nextLastQuarter": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    }
  },
  "required": [
    "date",
    "at",
    "phase",
    "phaseName",
    "illumination",
    "illuminationPercent",
    "ageDays",
    "cycleAngle",
    "waxing",
    "nextNewMoon",
    "nextFirstQuarter",
    "nextFullMoon",
    "nextLastQuarter",
    "notes",
    "source"
  ],
  "additionalProperties": false
}
🟢get_prayer_times(lat, lon, date, tz, method, ...)

Calculated Islamic prayer times (Fajr, sunrise, Dhuhr, Asr, Maghrib, Isha) for coordinates on a date, with the method parameters used. These are calculations: local mosques and authorities may differ by a few minutes, so point users to their local timetable. Use search_city to get coordinates and the zone of a city.

入力スキーマ

{
  "type": "object",
  "properties": {
    "lat": {
      "type": "number",
      "minimum": -90,
      "maximum": 90,
      "description": "Latitude in decimal degrees, north positive (−90 to 90)"
    },
    "lon": {
      "type": "number",
      "minimum": -180,
      "maximum": 180,
      "description": "Longitude in decimal degrees, east positive (−180 to 180)"
    },
    "date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Local date at the place, YYYY-MM-DD (1900–2100)"
    },
    "tz": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_+\\-/]+$",
      "description": "IANA time zone of the place, e.g. Africa/Cairo"
    },
    "method": {
      "type": "string",
      "enum": [
        "mwl",
        "umm-al-qura",
        "egyptian",
        "karachi",
        "isna"
      ],
      "default": "mwl",
      "description": "Calculation method: mwl (Muslim World League), umm-al-qura, egyptian, karachi or isna. Default mwl."
    },
    "asr": {
      "type": "string",
      "enum": [
        "standard",
        "hanafi"
      ],
      "default": "standard",
      "description": "Asr rule: standard (Shafi'i, Maliki, Hanbali) or hanafi. Default standard."
    }
  },
  "required": [
    "lat",
    "lon",
    "date",
    "tz"
  ],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "description": "Calendar date, YYYY-MM-DD",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "lat": {
      "type": "number"
    },
    "lon": {
      "type": "number"
    },
    "timeZone": {
      "type": "string",
      "description": "IANA time zone name"
    },
    "times": {
      "type": "object",
      "properties": {
        "fajr": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "utc": {
                  "type": "string",
                  "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                },
                "local": {
                  "type": "string",
                  "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
                }
              },
              "required": [
                "utc",
                "local"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "sunrise": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "utc": {
                  "type": "string",
                  "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                },
                "local": {
                  "type": "string",
                  "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
                }
              },
              "required": [
                "utc",
                "local"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "dhuhr": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "utc": {
                  "type": "string",
                  "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                },
                "local": {
                  "type": "string",
                  "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
                }
              },
              "required": [
                "utc",
                "local"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "asr": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "utc": {
                  "type": "string",
                  "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                },
                "local": {
                  "type": "string",
                  "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
                }
              },
              "required": [
                "utc",
                "local"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "maghrib": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "utc": {
                  "type": "string",
                  "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                },
                "local": {
                  "type": "string",
                  "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
                }
              },
              "required": [
                "utc",
                "local"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "isha": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "utc": {
                  "type": "string",
                  "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                },
                "local": {
                  "type": "string",
                  "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
                }
              },
              "required": [
                "utc",
                "local"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "fajr",
        "sunrise",
        "dhuhr",
        "asr",
        "maghrib",
        "isha"
      ],
      "additionalProperties": false
    },
    "method": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "enum": [
            "mwl",
            "umm-al-qura",
            "egyptian",
            "karachi",
            "isna"
          ]
        },
        "name": {
          "type": "string"
        },
        "fajrAngle": {
          "type": "number",
          "description": "Sun's depression angle at Fajr, degrees"
        },
        "ishaAngle": {
          "anyOf": [
            {
              "type": "number",
              "description": "Sun's depression angle at Isha, degrees"
            },
            {
              "type": "null"
            }
          ]
        },
        "ishaMinutesAfterMaghrib": {
          "anyOf": [
            {
              "type": "integer",
              "description": "Used instead of an angle (Umm al-Qura)"
            },
            {
              "type": "null"
            }
          ]
        },
        "ramadan": {
          "anyOf": [
            {
              "type": "boolean",
              "description": "Whether the date is in Ramadan (only relevant to Umm al-Qura)"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "name",
        "fajrAngle",
        "ishaAngle",
        "ishaMinutesAfterMaghrib",
        "ramadan"
      ],
      "additionalProperties": false
    },
    "asr": {
      "type": "object",
      "properties": {
        "school": {
          "type": "string",
          "enum": [
            "standard",
            "hanafi"
          ]
        },
        "shadowFactor": {
          "type": "integer"
        }
      },
      "required": [
        "school",
        "shadowFactor"
      ],
      "additionalProperties": false
    },
    "highLatitudeApproximation": {
      "type": "boolean"
    },
    "polar": {
      "type": "boolean"
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
    },
    "methods": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    }
  },
  "required": [
    "date",
    "lat",
    "lon",
    "timeZone",
    "times",
    "method",
    "asr",
    "highLatitudeApproximation",
    "polar",
    "notes",
    "methods",
    "source"
  ],
  "additionalProperties": false
}
🟢get_weather(lat, lon, city, tz)

Weather forecast from MET Norway for coordinates or a city: current temperature, symbol, wind, humidity and next-hour precipitation, 24 hourly steps and 7 daily summaries (low, high, precipitation). Values are SI (°C, m/s, mm). This tool calls MET Norway's public API (cached); credit "Weather data from MET Norway" when you show the data.

入力スキーマ

{
  "type": "object",
  "properties": {
    "lat": {
      "type": "number",
      "minimum": -90,
      "maximum": 90,
      "description": "Latitude in decimal degrees, north positive (−90 to 90). Use with lon, instead of city."
    },
    "lon": {
      "type": "number",
      "minimum": -180,
      "maximum": 180,
      "description": "Longitude in decimal degrees, east positive (−180 to 180). Use with lat, instead of city."
    },
    "city": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "City instead of coordinates: a city slug of clockcrest.com (e.g. new-york) or a name looked up in the city index (e.g. Oslo, القاهرة)"
    },
    "tz": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9_+\\-/]+$",
      "description": "IANA time zone for local times and daily grouping. Default: the city's zone, or UTC with coordinates."
    }
  },
  "required": [],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "location": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number",
          "description": "Latitude used, snapped to the 0.1° grid (about 11 km)"
        },
        "lon": {
          "type": "number",
          "description": "Longitude used, snapped to the 0.1° grid (about 11 km)"
        },
        "elevation": {
          "anyOf": [
            {
              "type": "number",
              "description": "Height of the forecast point above sea level in metres (MET Norway's terrain model)"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "anyOf": [
            {
              "type": "string",
              "description": "City name when the request named a city"
            },
            {
              "type": "null"
            }
          ]
        },
        "country": {
          "anyOf": [
            {
              "type": "string",
              "description": "ISO 3166-1 alpha-2 country code",
              "pattern": "^[A-Z]{2}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "timeZone": {
          "type": "string",
          "description": "Zone of the \"local\" times and of the daily grouping"
        }
      },
      "required": [
        "lat",
        "lon",
        "elevation",
        "name",
        "country",
        "timeZone"
      ],
      "additionalProperties": false
    },
    "updated": {
      "type": "string",
      "description": "When MET Norway last updated this forecast",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
    },
    "expires": {
      "type": "string",
      "description": "Until when this forecast is reused (MET Norway's Expires, at least 10 minutes)",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
    },
    "current": {
      "type": "object",
      "properties": {
        "time": {
          "type": "string",
          "description": "Start of the forecast step describing now",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
        },
        "local": {
          "type": "string",
          "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
        },
        "temperature": {
          "anyOf": [
            {
              "type": "number",
              "description": "Air temperature, °C"
            },
            {
              "type": "null"
            }
          ]
        },
        "symbol": {
          "anyOf": [
            {
              "type": "string",
              "description": "MET Norway weather symbol code for the next hour, e.g. partlycloudy_day"
            },
            {
              "type": "null"
            }
          ]
        },
        "windSpeed": {
          "anyOf": [
            {
              "type": "number",
              "description": "Wind speed, m/s"
            },
            {
              "type": "null"
            }
          ]
        },
        "windDirection": {
          "anyOf": [
            {
              "type": "number",
              "description": "Direction the wind blows from, degrees (0 = north, 90 = east)"
            },
            {
              "type": "null"
            }
          ]
        },
        "humidity": {
          "anyOf": [
            {
              "type": "number",
              "description": "Relative humidity, %"
            },
            {
              "type": "null"
            }
          ]
        },
        "cloudCover": {
          "anyOf": [
            {
              "type": "number",
              "description": "Cloud area fraction, %"
            },
            {
              "type": "null"
            }
          ]
        },
        "pressure": {
          "anyOf": [
            {
              "type": "number",
              "description": "Air pressure at sea level, hPa"
            },
            {
              "type": "null"
            }
          ]
        },
        "precipitationNextHour": {
          "anyOf": [
            {
              "type": "number",
              "description": "Precipitation expected in the next hour, mm"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "time",
        "local",
        "temperature",
        "symbol",
        "windSpeed",
        "windDirection",
        "humidity",
        "cloudCover",
        "pressure",
        "precipitationNextHour"
      ],
      "additionalProperties": false
    },
    "hourly": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "time": {
            "type": "string",
            "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "local": {
            "type": "string",
            "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
          },
          "temperature": {
            "anyOf": [
              {
                "type": "number",
                "description": "°C"
              },
              {
                "type": "null"
              }
            ]
          },
          "symbol": {
            "anyOf": [
              {
                "type": "string",
                "description": "Weather symbol code for that hour"
              },
              {
                "type": "null"
              }
            ]
          },
          "windSpeed": {
            "anyOf": [
              {
                "type": "number",
                "description": "m/s"
              },
              {
                "type": "null"
              }
            ]
          },
          "windDirection": {
            "anyOf": [
              {
                "type": "number",
                "description": "Degrees the wind blows from"
              },
              {
                "type": "null"
              }
            ]
          },
          "precipitation": {
            "anyOf": [
              {
                "type": "number",
                "description": "Precipitation during that hour, mm"
              },
              {
                "type": "null"
              }
            ]
          },
          "humidity": {
            "anyOf": [
              {
                "type": "number",
                "description": "%"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "time",
          "local",
          "temperature",
          "symbol",
          "windSpeed",
          "windDirection",
          "precipitation",
          "humidity"
        ],
        "additionalProperties": false
      },
      "description": "Up to 24 hourly steps from the current hour on"
    },
    "daily": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "Local date in location.timeZone",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "min": {
            "type": "number",
            "description": "Lowest forecast temperature of the date still ahead, °C"
          },
          "max": {
            "type": "number",
            "description": "Highest forecast temperature of the date still ahead, °C"
          },
          "symbol": {
            "anyOf": [
              {
                "type": "string",
                "description": "Weather symbol code of the period nearest local noon"
              },
              {
                "type": "null"
              }
            ]
          },
          "precipitation": {
            "anyOf": [
              {
                "type": "number",
                "description": "Total precipitation of the forecast periods starting that date, mm"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "date",
          "min",
          "max",
          "symbol",
          "precipitation"
        ],
        "additionalProperties": false
      },
      "description": "Up to 7 local dates, today first"
    },
    "units": {
      "type": "object",
      "properties": {
        "temperature": {
          "type": "string",
          "const": "celsius"
        },
        "windSpeed": {
          "type": "string",
          "const": "m/s"
        },
        "windDirection": {
          "type": "string",
          "const": "degrees"
        },
        "precipitation": {
          "type": "string",
          "const": "mm"
        },
        "humidity": {
          "type": "string",
          "const": "%"
        },
        "cloudCover": {
          "type": "string",
          "const": "%"
        },
        "pressure": {
          "type": "string",
          "const": "hPa"
        }
      },
      "required": [
        "temperature",
        "windSpeed",
        "windDirection",
        "precipitation",
        "humidity",
        "cloudCover",
        "pressure"
      ],
      "additionalProperties": false
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    },
    "sourceUrl": {
      "type": "string"
    },
    "attribution": {
      "type": "string",
      "description": "Credit line to show with the data"
    },
    "license": {
      "type": "string"
    },
    "licenseUrl": {
      "type": "string"
    }
  },
  "required": [
    "location",
    "updated",
    "expires",
    "current",
    "hourly",
    "daily",
    "units",
    "notes",
    "source",
    "sourceUrl",
    "attribution",
    "license",
    "licenseUrl"
  ],
  "additionalProperties": false
}
🟢get_market_hours(exchange)

Regular trading hours of major stock exchanges and whether each is open right now according to its weekly timetable, with the next open and close in UTC. Exchange holidays and early closes are NOT modelled — tell the user to check the exchange calendar (sourceUrl) for those.

入力スキーマ

{
  "type": "object",
  "properties": {
    "exchange": {
      "type": "string",
      "enum": [
        "nyse",
        "nasdaq",
        "tsx",
        "lse",
        "euronext-paris",
        "xetra",
        "six",
        "bist",
        "tadawul",
        "dfm",
        "adx",
        "egx",
        "jse",
        "nse",
        "bse",
        "sgx",
        "hkex",
        "sse",
        "szse",
        "tse",
        "krx",
        "asx",
        "nzx"
      ],
      "description": "Only this exchange: nyse, nasdaq, tsx, lse, euronext-paris, xetra, six, bist, tadawul, dfm, adx, egx, jse, nse, bse, sgx, hkex, sse, szse, tse, krx, asx, nzx"
    }
  },
  "required": [],
  "additionalProperties": false
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "at": {
      "type": "string",
      "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
    },
    "exchange": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "count": {
      "type": "integer"
    },
    "exchanges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "fullName": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code",
            "pattern": "^[A-Z]{2}$"
          },
          "region": {
            "type": "string",
            "enum": [
              "americas",
              "europe",
              "mea",
              "apac"
            ]
          },
          "timeZone": {
            "type": "string",
            "description": "IANA time zone name"
          },
          "tradingDays": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "English weekday name",
              "enum": [
                "Sunday",
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday"
              ]
            }
          },
          "open": {
            "type": "string",
            "description": "Regular session open, local time",
            "pattern": "^\\d{2}:\\d{2}$"
          },
          "close": {
            "type": "string",
            "description": "Regular session close, local time",
            "pattern": "^\\d{2}:\\d{2}$"
          },
          "lunchBreak": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string",
                    "description": "Local time",
                    "pattern": "^\\d{2}:\\d{2}$"
                  },
                  "end": {
                    "type": "string",
                    "description": "Local time",
                    "pattern": "^\\d{2}:\\d{2}$"
                  }
                },
                "required": [
                  "start",
                  "end"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "closingAuction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sourceUrl": {
            "type": "string",
            "description": "The exchange's own page the hours were checked against"
          },
          "status": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "description": "What the regular timetable says now",
                "enum": [
                  "open",
                  "lunch",
                  "closed",
                  "weekend"
                ]
              },
              "isOpen": {
                "type": "boolean"
              },
              "localTime": {
                "type": "string",
                "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
              },
              "nextEvent": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "open",
                      "close",
                      "lunch-start",
                      "lunch-end"
                    ]
                  },
                  "at": {
                    "type": "string",
                    "description": "UTC instant, YYYY-MM-DDTHH:MM:SSZ",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                  },
                  "local": {
                    "type": "string",
                    "description": "Local time with its UTC offset, YYYY-MM-DDTHH:MM:SS±HH:MM",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$"
                  }
                },
                "required": [
                  "kind",
                  "at",
                  "local"
                ],
                "additionalProperties": false
              },
              "nextOpen": {
                "type": "string",
                "description": "Next time trading starts or resumes",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
              },
              "nextClose": {
                "type": "string",
                "description": "Next end-of-day close",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
              }
            },
            "required": [
              "state",
              "isOpen",
              "localTime",
              "nextEvent",
              "nextOpen",
              "nextClose"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "name",
          "fullName",
          "city",
          "country",
          "region",
          "timeZone",
          "tradingDays",
          "open",
          "close",
          "lunchBreak",
          "closingAuction",
          "sourceUrl",
          "status"
        ],
        "additionalProperties": false
      }
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Caveats and conventions that apply to this response."
    },
    "source": {
      "type": "string",
      "description": "Where the data or the algorithm comes from."
    },
    "lastUpdated": {
      "type": "string",
      "description": "Date the underlying data set was last generated or checked.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    }
  },
  "required": [
    "at",
    "exchange",
    "count",
    "exchanges",
    "notes",
    "source",
    "lastUpdated"
  ],
  "additionalProperties": false
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 16 件