From 941e4d521c23753a60f9cc60fe042446cca82bef Mon Sep 17 00:00:00 2001 From: triepod-ai Date: Sun, 21 Dec 2025 11:48:40 -0600 Subject: [PATCH 1/2] feat: Add DestructiveHint to delete_project_item tool annotation Add DestructiveHint: true to the delete_project_item tool to be consistent with other delete operations (delete_file and delete_workflow_run_logs) that properly indicate destructive behavior. This helps LLMs better understand that this tool permanently removes data and should be used with appropriate caution. Co-Authored-By: Claude --- pkg/github/projects.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/github/projects.go b/pkg/github/projects.go index 18c1f778b..0536bed99 100644 --- a/pkg/github/projects.go +++ b/pkg/github/projects.go @@ -900,8 +900,9 @@ func DeleteProjectItem(t translations.TranslationHelperFunc) inventory.ServerToo Name: "delete_project_item", Description: t("TOOL_DELETE_PROJECT_ITEM_DESCRIPTION", "Delete a specific Project item for a user or org"), Annotations: &mcp.ToolAnnotations{ - Title: t("TOOL_DELETE_PROJECT_ITEM_USER_TITLE", "Delete project item"), - ReadOnlyHint: false, + Title: t("TOOL_DELETE_PROJECT_ITEM_USER_TITLE", "Delete project item"), + ReadOnlyHint: false, + DestructiveHint: jsonschema.Ptr(true), }, InputSchema: &jsonschema.Schema{ Type: "object", From 77af8e1a81cf80a756647c11f0a0bdba0b0921f3 Mon Sep 17 00:00:00 2001 From: triepod-ai Date: Sun, 21 Dec 2025 12:32:25 -0600 Subject: [PATCH 2/2] chore: Update toolsnap for delete_project_item with destructiveHint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add destructiveHint: true to the snapshot file to match the code change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- pkg/github/__toolsnaps__/delete_project_item.snap | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/github/__toolsnaps__/delete_project_item.snap b/pkg/github/__toolsnaps__/delete_project_item.snap index d768df10f..430c83cc8 100644 --- a/pkg/github/__toolsnaps__/delete_project_item.snap +++ b/pkg/github/__toolsnaps__/delete_project_item.snap @@ -1,5 +1,6 @@ { "annotations": { + "destructiveHint": true, "title": "Delete project item" }, "description": "Delete a specific Project item for a user or org",