🌐 AI搜索 & 代理 主页
Skip to content

Commit 844137c

Browse files
web-flowclaude
authored andcommitted
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 <noreply@anthropic.com>
1 parent b79d126 commit 844137c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/github/projects.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,9 @@ func DeleteProjectItem(t translations.TranslationHelperFunc) inventory.ServerToo
900900
Name: "delete_project_item",
901901
Description: t("TOOL_DELETE_PROJECT_ITEM_DESCRIPTION", "Delete a specific Project item for a user or org"),
902902
Annotations: &mcp.ToolAnnotations{
903-
Title: t("TOOL_DELETE_PROJECT_ITEM_USER_TITLE", "Delete project item"),
904-
ReadOnlyHint: false,
903+
Title: t("TOOL_DELETE_PROJECT_ITEM_USER_TITLE", "Delete project item"),
904+
ReadOnlyHint: false,
905+
DestructiveHint: jsonschema.Ptr(true),
905906
},
906907
InputSchema: &jsonschema.Schema{
907908
Type: "object",

0 commit comments

Comments
 (0)