📊
Interval Operations
Category: Time Operations
INTERVAL ALGEBRA: Perform set operations on time intervals. Operations: UNION (merge intervals), INTERSECTION (find overlap), DIFFERENCE (subtract), GAPS (find gaps). Handles overlapping and adjacent intervals with normalized output. Use for 'Find overlapping time windows', 'Merge available time slots', 'Find gaps in schedule'.
Parameters
intervals_aarrayRequiredFirst set of intervals with start/end
intervals_barrayOptionalSecond set of intervals (not needed for GAPS)
operationstringRequiredSet operation: UNION, INTERSECTION, DIFFERENCE, GAPS
Returns
result_intervals:Resulting intervals after operationoperation:Operation performedExample
interval_operations(intervals_a=[{start: '2024-12-09T10:00', end: '2024-12-09T12:00'}], operation='UNION')Try It Now
This tool is available in the Vreme MCP server. Install via:
npx -y @vreme/temporal-mcp
Or add to your Claude Desktop, VS Code, Continue, or Cline configuration. See installation guide.