Skip to content

fix(mcp): mark assignee and stage overwrites as destructive - #1778

Merged
realcodesiman merged 1 commit into
mainfrom
fix/openai-overwrite-annotations
Nov 25, 2026
Merged

realcodesiman merged 1 commit into
mainfrom
fix/openai-overwrite-annotations

Conversation

@realcodesiman

Copy link
Copy Markdown
Contributor

Why

OpenAI rejected the ChatGPT connector (v1.0.0): "one or more of your tool's annotations do not appear to match". The current review guideline sets destructiveHint: true for any tool that overwrites or clears existing data, even when the change can be undone (https://developers.openai.com/plugins/app-guidelines).

Two tools in the OpenAI profile still declared destructiveHint: false while overwriting state:

Tool What it overwrites
conversations_assign replaces or clears the current assignee (assignedId: null)
pipelines_move_item replaces the item's current stage

contacts_set_custom_field already declares true, which made the profile inconsistent.

Changes

  • x-mcp.destructiveHint: true on conversations.assign and pipelines.moveItem, at the source, so the default, Claude and OpenAI profiles advertise the same hint.
  • hitlPolicy comes from the operation id, not from the hint, so it stays confirm_diff. The OpenAI input schemas don't change and no second _confirm round trip is added.
  • Test: overwrite operations are destructive and keep confirm_diff.
  • mcp-server README: the profile tables had a backticked env name in the first column, which the README tool-list test read as a tool name. That test has failed on main since fix(mcp): serve every route under CHATBOTX_MCP_BASE_PATH #1777; this fixes it.

Test plan

  • apps/builder: public-spec-mcp.test.ts + public-spec-operations.test.ts, 90/90. The 2 new tests failed before the change.
  • apps/mcp-server: 340 tests pass
  • tsc (builder, mcp-server) and biome are clean
  • After deploy: in the OpenAI dashboard, Scan Tools, confirm both tools show destructiveHint: true, then resubmit with a bumped version

OpenAI rejected the ChatGPT connector because tool annotations did not match
behavior. Its review rule sets destructiveHint for any tool that overwrites or
clears existing data, even when the change can be undone.

- conversations.assign replaces or clears the current assignee.
- pipelines.moveItem replaces the item's current stage.

Both now declare destructiveHint: true in x-mcp, so the default, Claude and
OpenAI profiles advertise the same hint. hitlPolicy is derived from the
operation id and stays confirm_diff, so the OpenAI input schemas and the
approval flow are unchanged.

Also fix the mcp-server README profile tables: a backticked env name in the
first column was read as a tool name by the README tool-list test, which has
failed on main since #1777.
@github-actions github-actions Bot added the bug Something isn't working as expected label Nov 25, 2026
@realcodesiman
realcodesiman merged commit d1fd638 into main Nov 25, 2026
15 checks passed
@realcodesiman
realcodesiman deleted the fix/openai-overwrite-annotations branch November 25, 2026 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant