Add date range filtering to get_updates tool#240
Merged
Conversation
Enable board-level update queries to filter by date range using fromDate/toDate (ISO8601 format). Both parameters must be provided together and are only supported for Board objectType. Also expose boardUpdatesOnly as a parameter (defaults to true, preserving current behavior) so agents can explicitly opt in to retrieving item-level updates alongside board-level ones. Made-with: Cursor
Made-with: Cursor
Replace the negative-logic boardUpdatesOnly (default true) with the positive-logic includeItemUpdates (default false). This aligns with the existing includeReplies and includeAssets naming convention and avoids confusing double-negation. Made-with: Cursor
RomKadria
approved these changes
Mar 18, 2026
The Board.updates GraphQL field expects ISO8601DateTime (e.g.
"2025-01-01T00:00:00Z"), but agents naturally pass date-only strings
("2025-01-01"). Add normalizeToISO8601DateTime() to append T00:00:00Z
when a YYYY-MM-DD string is detected, while passing full datetime
strings through unchanged.
Made-with: Cursor
|
🏷️ Version Bump Preview Type: minor ✅ This is just a preview! The actual version bump will happen when this PR is merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fromDateandtoDateoptional parameters to theget_updatestool for board-level queries, enabling date range filtering on board updates (ISO8601 format, both required together)includeItemUpdatesparameter (defaults tofalse, preserving current behavior) instead of hardcodingboard_updates_only: truein the GraphQL query. Agents can setincludeItemUpdates: trueto also retrieve item-level updates on a board. Follows the same naming convention asincludeReplies/includeAssets.objectType: Item(not supported by the API)Context
Sidekick currently cannot answer questions about updates within a specific date range. The monday.com API supports
from_date/to_dateonBoard.updatesbut the MCP tool didn't expose these parameters. This change makes that capability available to all agents.Discussion thread: https://monday.slack.com/archives/C09MKR01006/p1772800703095789
Changes
get-updates.graphql.ts$fromDate,$toDate,$boardUpdatesOnlyvariables toGetBoardUpdatesqueryget-updates-tool.tsfromDate,toDate,includeItemUpdatesschema fields, input validation, update executor and descriptionget-updates-tool.test.tsgenerated/graphql/*package.jsonTest plan
fromDate/toDate— verify variables are passed to the queryfromDateor onlytoDateis providedobjectType: ItemincludeItemUpdates: true— verifyboardUpdatesOnly: falseis passed to GraphQLboardUpdatesOnly: true(backward compatible)Made with Cursor