VREME
📊

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_aarrayRequired

First set of intervals with start/end

intervals_barrayOptional

Second set of intervals (not needed for GAPS)

operationstringRequired

Set operation: UNION, INTERSECTION, DIFFERENCE, GAPS

Returns

result_intervals:Resulting intervals after operation
operation:Operation performed

Example

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.