Skip to content

fix(agent-toolkit): mark update_form as destructive (5.80.2) - #574

Merged
rami-monday merged 1 commit into
masterfrom
fix/update-form-destructive-hint
Nov 26, 2026
Merged

rami-monday merged 1 commit into
masterfrom
fix/update-form-destructive-hint

Conversation

@rami-monday

Copy link
Copy Markdown
Collaborator

Bug

update_form is annotated destructiveHint: false, but two of its actions remove data or availability:

  • deactivate takes a live form offline, so respondents can no longer submit.
  • deleteTag deletes a form tag.

MCP clients use destructiveHint to decide whether to ask the user for confirmation, so the current value lets these run without one. An MCP directory review flagged it.

Fix

  • update_form: destructiveHint: true. Title, readOnlyHint (false) and idempotentHint (true) are unchanged.
  • New test asserting the annotations.
  • Bumped the version to 5.80.2 and added a CHANGELOG entry.

No schema, description or behavior change.

Testing

  • jest for workforms-tools: 3 suites, 114 tests, all pass, including the new one.
  • eslint on update-form-tool: clean.

Out of scope

The same review also flagged update_form's setFormPassword (a password collected in chat), redirectUrl (no scheme check) and formToken (no description). This PR doesn't address them.

🤖 Generated with Claude Code

update_form's deactivate action takes a live form offline and deleteTag
removes a tag, so destructiveHint must be true for clients to ask before
calling it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rami-monday
rami-monday merged commit b2fe98a into master Nov 26, 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