Create Form Tool & Get Form Tool#65
Merged
Merged
Conversation
- Introduced CreateFormTool to facilitate form creation. - Added createForm GraphQL mutation to handle form creation requests. - Updated package.json to include @mondaydotcomorg/workforms-contracts dependency. - Enhanced GraphQL types to support the new mutation.
- Added comments to clarify the purpose of the WorkForms operations section. - Introduced createForm mutation for creating new monday forms (API version 2025-10).
- Introduced GetFormTool for fetching forms by token. - Added getForm GraphQL query to retrieve detailed form information. - Updated GraphQL types to include GetFormQuery and its variables.
…ndencies - Deleted CreateFormTool and GetFormTool as part of the refactor. - Removed @mondaydotcomorg/workforms-contracts dependency from package.json. - Updated import paths for GraphQL types to reflect new structure.
- Moved CreateFormTool and GetFormTool imports to the workforms-tools directory. - Cleaned up import statements to reflect the new structure.
- Updated import paths for CreateFormTool and GetFormTool to reflect their new location in the workforms-tools directory. - Ensured all relevant tools are correctly exported from the updated structure.
budziam
reviewed
Aug 28, 2025
- Added documentation for CreateFormTool and GetFormTool under WorkForms Operations section. - Enhanced clarity on the toolkit's capabilities for managing forms in monday.com.
- Changed import paths for CreateFormTool and GetFormTool to use the new workforms.graphql file. - Removed the old queries.graphql file references to streamline the codebase.
shaneer
requested changes
Aug 28, 2025
- Updated the description of GetFormTool to provide detailed information on extracting form tokens from URLs. - Clarified the format of the form URL and the location of the token within it.
- Updated the description of CreateFormTool to provide detailed information on the creation of a new form and associated board. - Clarified the significance of the returned board_id and formToken for future queries and mutations.
- Included create_form and get_form operations under the WorkForms Operations section in the README. - Enhanced documentation to reflect the toolkit's capabilities for managing forms in monday.com.
…option - Added support for fetching a minimal version of the form with core properties through the new getMinimalForm GraphQL query. - Introduced an optional parameter `includeFullFormDetails` in the GetFormTool schema to toggle between full and minimal form details. - Updated GraphQL descriptions to clarify the new functionality and its usage.
- Eliminated the `includeFullFormDetails` parameter from the GetFormTool schema. - Updated the executeInternal method to always fetch the full form using the getForm query. - Removed the getMinimalForm query from the workforms.graphql file to streamline the codebase.
RomKadria
reviewed
Aug 31, 2025
| import { GraphQLDescriptions } from './workforms.consts'; | ||
|
|
||
| export const createFormToolSchema = { | ||
| destination_workspace_id: z.number().describe(GraphQLDescriptions.form.args.destinationWorkspaceId), |
Collaborator
There was a problem hiding this comment.
this should be of type string, if in the gql its number this should change. I know someone from your team plans to change it to type ID (for all the IDS)
Collaborator
Author
There was a problem hiding this comment.
This is dependent on the use_template mutation so we copy the exact types they use as well. When they switch to IDs we will too
shaneer
approved these changes
Aug 31, 2025
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.
Implements 2 out of the 4 planned tools for forms:
Create Form Tool ✅
Get Form Tool ✅
Form Questions Editor ⚪
Update Form Tool ⚪
This also introduces the use of the @mondaydotcomorg/workforms-contracts package which we need because that's where we store all of our types such as the Form type as well as all of our graphql description strings so we don't have to duplicate the description strings here and on the graphql itself. But this is causing a failure presumably because this is an open-sourced repo. Would appreciate helping us figure out how we can achieve this.
https://monday.monday.com/boards/3709356818/pulses/9909975261
https://monday.monday.com/boards/3709356818/pulses/9909975945