Skip to content

Context7 Platform -- Up-to-date docs for AI agents

feat(annotations): add missing tool annotations and enhance hints (#2521)

Enes Gules8274bd05eafb
diff --git a/.changeset/cuddly-lands-tease.md b/.changeset/cuddly-lands-tease.md
new file mode 100644
index 00000000..2c02986a
--- /dev/null
+++ b/.changeset/cuddly-lands-tease.md
@@ -0,0 +1,5 @@
+---
+"@upstash/context7-mcp": patch
+---
+
+Add missing tool annotations
diff --git a/packages/mcp/src/index.ts b/packages/mcp/src/index.ts
index 6862ff20..d50bcf5c 100644
--- a/packages/mcp/src/index.ts
+++ b/packages/mcp/src/index.ts
@@ -208,6 +208,9 @@ IMPORTANT: Do not call this tool more than 3 times per question. If you cannot f
},
annotations: {
readOnlyHint: true,
+ destructiveHint: false,
+ openWorldHint: true,
+ idempotentHint: true,
},
},
async ({ query, libraryName }) => {
@@ -272,6 +275,9 @@ Workflow: call first without researchMode. If that doesn't answer the question,
},
annotations: {
readOnlyHint: true,
+ destructiveHint: false,
+ openWorldHint: true,
+ idempotentHint: true,
},
},
async ({ query, libraryId, researchMode }) => {