{
  "x402Version": 2,
  "id": 4485,
  "slug": "4485",
  "resource": "https://schedule-tools.use.x402atlas.com/intervals-merge",
  "description": "Time interval merger — sort, deduplicate, and combine overlapping or adjacent RFC 3339 date-time ranges.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "category": "calendar",
      "info": {
        "input": {
          "body": {
            "intervals": [
              {
                "end": "2024-06-03T10:30:00Z",
                "start": "2024-06-03T09:00:00Z"
              },
              {
                "end": "2024-06-03T11:00:00Z",
                "start": "2024-06-03T10:00:00Z"
              },
              {
                "end": "2024-06-03T12:00:00Z",
                "start": "2024-06-03T11:00:00Z"
              }
            ],
            "merge_adjacent": true
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "algorithm_version": "schedule-v1",
            "input_count": 3,
            "intervals": [
              {
                "end": "2024-06-03T12:00:00Z",
                "start": "2024-06-03T09:00:00Z"
              }
            ],
            "merge_adjacent": true,
            "operation": "intervals-merge",
            "output_count": 1,
            "total_covered_seconds": 10800,
            "warnings": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "intervals": {
                    "description": "Intervals to sort and merge; duplicates are allowed",
                    "items": {
                      "additionalProperties": false,
                      "description": "One RFC3339 whole-second half-open interval [start,end)",
                      "properties": {
                        "end": {
                          "description": "Exclusive RFC3339 instant after start",
                          "format": "date-time",
                          "type": "string"
                        },
                        "start": {
                          "description": "Inclusive RFC3339 instant",
                          "format": "date-time",
                          "type": "string"
                        }
                      },
                      "required": [
                        "start",
                        "end"
                      ],
                      "type": "object"
                    },
                    "maxItems": 1000,
                    "minItems": 0,
                    "type": "array"
                  },
                  "merge_adjacent": {
                    "default": true,
                    "description": "Merge intervals that touch exactly as well as intervals that overlap",
                    "type": "boolean"
                  }
                },
                "required": [
                  "intervals"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "additionalProperties": false,
                "properties": {
                  "_atlas": {
                    "additionalProperties": false,
                    "description": "Atlas documentation and related-route metadata added after deployment",
                    "properties": {
                      "docs": {
                        "description": "Documentation URL for this bridge",
                        "format": "uri",
                        "maxLength": 512,
                        "type": "string"
                      },
                      "related": {
                        "description": "Bounded related Atlas routes",
                        "items": {
                          "additionalProperties": false,
                          "description": "One related Atlas route",
                          "properties": {
                            "bridge": {
                              "description": "Related bridge name",
                              "maxLength": 64,
                              "type": "string"
                            },
                            "docs": {
                              "description": "Related bridge documentation URL",
                              "format": "uri",
                              "maxLength": 512,
                              "type": "string"
                            },
                            "summary": {
                              "description": "Short capability summary",
                              "maxLength": 256,
                              "type": "string"
                            },
                            "url": {
                              "description": "Related route URL",
                              "format": "uri",
                              "maxLength": 512,
                              "type": "string"
                            }
                          },
                          "required": [
                            "bridge",
                            "url",
                            "docs",
                            "summary"
                          ],
                          "type": "object"
                        },
                        "maxItems": 3,
                        "type": "array"
                      }
                    },
                    "required": [
                      "docs"
                    ],
                    "type": "object"
                  },
                  "algorithm_version": {
                    "const": "schedule-v1",
                    "description": "Pinned interval merge contract",
                    "type": "string"
                  },
                  "input_count": {
                    "description": "Number of input intervals",
                    "maximum": 1000,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "intervals": {
                    "description": "Sorted maximal UTC intervals; [] when input is empty",
                    "items": {
                      "additionalProperties": false,
                      "description": "One normalized UTC half-open interval",
                      "properties": {
                        "end": {
                          "description": "Exclusive RFC3339 instant after start",
                          "format": "date-time",
                          "type": "string"
                        },
                        "start": {
                          "description": "Inclusive RFC3339 instant",
                          "format": "date-time",
                          "type": "string"
                        }
                      },
                      "required": [
                        "start",
                        "end"
                      ],
                      "type": "object"
                    },
                    "maxItems": 1000,
                    "minItems": 0,
                    "type": "array"
                  },
                  "merge_adjacent": {
                    "description": "Applied adjacency policy",
                    "type": "boolean"
                  },
                  "operation": {
                    "const": "intervals-merge",
                    "description": "Stable route operation",
                    "type": "string"
                  },
                  "output_count": {
                    "description": "Number of maximal output intervals",
                    "maximum": 1000,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "total_covered_seconds": {
                    "description": "Checked sum of output interval durations in seconds",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "warnings": {
                    "description": "Always empty for deterministic merging",
                    "items": {
                      "description": "Warning",
                      "type": "string"
                    },
                    "maxItems": 0,
                    "type": "array"
                  }
                },
                "required": [
                  "operation",
                  "algorithm_version",
                  "merge_adjacent",
                  "input_count",
                  "output_count",
                  "intervals",
                  "total_covered_seconds",
                  "warnings"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "merge-intervals",
        "interval-normalization",
        "calendar",
        "scheduling",
        "deduplicate-time-ranges"
      ]
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "schedule-tools.use.x402atlas.com",
  "lastUpdated": "2026-09-15T06:32:35.417Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-15T06:32:35.266Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "schedule-tools.use.x402atlas.com",
    "manifest_name": "schedule-tools.use.x402atlas.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}