You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
startParamDescription="Start of the query window as an RFC3339 timestamp (e.g. 2026-04-01T00:00:00Z). When omitted, the tool returns an instant snapshot (current behavior). When provided without end, end defaults to now."
65
+
startParamDescription="Start of the query window as an RFC3339 timestamp (e.g. 2026-04-01T00:00:00Z). When omitted, the tool returns an instant snapshot (current behavior). When provided without end, end defaults to now. The window between start and end may not exceed 90 days."
65
66
endParamDescription="End of the query window as an RFC3339 timestamp (e.g. 2026-04-01T01:00:00Z). Requires start. If in the future, clamped to now."
66
67
)
67
68
@@ -75,10 +76,16 @@ func (w TimeWindow) IsZero() bool {
returnTimeWindow{}, fmt.Errorf("end (%s) must be after start (%s)", end.Format(time.RFC3339), start.Format(time.RFC3339))
151
158
}
152
159
160
+
ifend.Sub(start) >maxWindowDuration {
161
+
returnTimeWindow{}, fmt.Errorf("window between start (%s) and end (%s) exceeds the maximum of 90 days", start.Format(time.RFC3339), end.Format(time.RFC3339))
0 commit comments