Repository navigation
fix(agent-toolkit): document WorkForms tool params and require https redirectUrl (5.80.3) - #579
Merged
rami-monday merged 1 commit intoDec 1, 2026
Conversation
…redirectUrl (5.80.3) Add descriptions to formToken (get_form, form_questions_editor, update_form) and to six create_form params, with a shared formTokenSchema. Restrict update_form redirectUrl to https:// in the schema and in the updateFeatures handler. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
rami-monday
approved these changes
Dec 1, 2026
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.
Problem
An MCP directory review (ChatGPT and Gemini connectors) flagged WorkForms tools for:
formTokenon three tools, sixcreate_formparams);update_form'sredirectUrlaccepting any string, includingjavascript:anddata:URLs.Changes
Parameter descriptions
formToken(get_form,form_questions_editor,update_form): description plus pattern^[A-Za-z0-9_-]+$, defined once in a sharedformTokenSchema(workforms-tools/form-token.schema.ts). The pattern rejects URLs and empty strings.create_form:destination_workspace_id,destination_folder_id,destination_folder_name,board_kind,board_owner_ids,board_owner_team_idsnow have descriptions inGraphQLDescriptions. They only say what each param is. Defaults and folder-creation behaviour are not described because they could not be verified.redirectUrl.url()plus^https:\/\/\S+$. The pattern shows up in the published JSON schema.updateFeaturesrejects any non-httpsredirectUrlbefore calling the API, so the check does not depend on schema validation.Version 5.80.3 with a CHANGELOG entry.
Behavior changes to be aware of
redirectUrlis now rejected. That includes a form whose saved redirect ishttp://when a client re-sends it, andredirectUrl: ''sent while disabling the redirect (omit it instead).formTokenvalues with characters outside[A-Za-z0-9_-]are rejected. The token format was not confirmed from the backend, so_and-are allowed to avoid locking out any form.Testing
jestforworkforms-tools: 3 suites, 121 tests pass. New tests: httpsredirectUrlaccepted;http://,javascript:anddata:rejected by the schema and byUpdateFormToolHelpers.updateFeaturescalled directly (bypassing schema validation). EmptyformTokenis now expected to be rejected.eslintandtsc --noEmit: clean.Not in this PR
create_form_submissiontoken handling and password removal, and removingsetFormPasswordfromupdate_form, are in a separate PR. TheMISSING_DESCRIPTION_ALLOWLISTcleanup inplatform-mcp-gatewayfollows once this is released.🤖 Generated with Claude Code