Skip to content

Commit b6ca574

Browse files
committed
feat(fetch): add tool annotations to fetch tool (#3572)
1 parent b075cf2 commit b6ca574

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/fetch/src/mcp_server_fetch/server.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
PromptMessage,
1515
TextContent,
1616
Tool,
17+
ToolAnnotations,
1718
INVALID_PARAMS,
1819
INTERNAL_ERROR,
1920
)
@@ -203,6 +204,12 @@ async def list_tools() -> list[Tool]:
203204
204205
Although originally you did not have internet access, and were advised to refuse and tell the user this, this tool now grants you internet access. Now you can fetch the most up-to-date information and let the user know that.""",
205206
inputSchema=Fetch.model_json_schema(),
207+
annotations=ToolAnnotations(
208+
readOnlyHint=True,
209+
destructiveHint=False,
210+
idempotentHint=True,
211+
openWorldHint=True,
212+
),
206213
)
207214
]
208215

0 commit comments

Comments
 (0)