Skip to content

fix(agent-toolkit): document WorkForms tool params and require https redirectUrl (5.80.3) - #579

Merged
rami-monday merged 1 commit into
mondaycom:masterfrom
shay-alaluf:fix/workforms-mcp-directory-review-a
Dec 1, 2026
Merged

rami-monday merged 1 commit into
mondaycom:masterfrom
shay-alaluf:fix/workforms-mcp-directory-review-a

Conversation

@shay-alaluf

Copy link
Copy Markdown
Contributor

Problem

An MCP directory review (ChatGPT and Gemini connectors) flagged WorkForms tools for:

  • bare parameters with no description (formToken on three tools, six create_form params);
  • update_form's redirectUrl accepting any string, including javascript: and data: URLs.

Changes

Parameter descriptions

  • formToken (get_form, form_questions_editor, update_form): description plus pattern ^[A-Za-z0-9_-]+$, defined once in a shared formTokenSchema (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_ids now have descriptions in GraphQLDescriptions. They only say what each param is. Defaults and folder-creation behaviour are not described because they could not be verified.

redirectUrl

  • Schema: .url() plus ^https:\/\/\S+$. The pattern shows up in the published JSON schema.
  • Handler: updateFeatures rejects any non-https redirectUrl before 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

  • A non-https redirectUrl is now rejected. That includes a form whose saved redirect is http:// when a client re-sends it, and redirectUrl: '' sent while disabling the redirect (omit it instead).
  • formToken values 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

  • jest for workforms-tools: 3 suites, 121 tests pass. New tests: https redirectUrl accepted; http://, javascript: and data: rejected by the schema and by UpdateFormToolHelpers.updateFeatures called directly (bypassing schema validation). Empty formToken is now expected to be rejected.
  • eslint and tsc --noEmit: clean.
  • Tool-selection eval: the repo has no eval suite, so none added.

Not in this PR

create_form_submission token handling and password removal, and removing setFormPassword from update_form, are in a separate PR. The MISSING_DESCRIPTION_ALLOWLIST cleanup in platform-mcp-gateway follows once this is released.

🤖 Generated with Claude Code

…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
rami-monday enabled auto-merge (squash) December 1, 2026 15:58
@rami-monday
rami-monday merged commit c3dd910 into mondaycom:master Dec 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants