Skip to content

Commit 2930dfb

Browse files
refactor(tools): shorten web_fetch and web_search descriptions
1 parent 1b6c6a5 commit 2930dfb

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎src/tools/web-fetch.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function fetchTimeoutMessage(url: string, seconds: number): string {
7777
export const webFetchDefinition: ToolDefinition = {
7878
name: "web_fetch",
7979
description:
80-
"Fetch a web page over HTTP(S) and return its content. Uses built-in Exa MCP by default, or a direct in-process fetch when that built-in is disabled or overridden. Converts HTML to markdown by default. Use for documentation, articles, and other external references. If a pasted URL belongs to a host covered by a connected MCP server, route it through that server via tool_search first, extracting the item identifier from the host-plus-path. web_fetch is for public docs, articles, and external references, not authenticated app surfaces. Use web_fetch when no covering MCP server exists, the MCP call fails, or the page is genuinely public.",
80+
"Fetch a public web page (docs, articles) and return it as markdown by default. For a URL on a host a connected MCP server covers, use that server via tool_search first; web_fetch is for public pages, not authenticated apps.",
8181
inputSchema: {
8282
type: "object",
8383
properties: {

‎src/tools/web-search.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ const WebSearchArgs = type({
2525

2626
export const webSearchDefinition: ToolDefinition = {
2727
name: "web_search",
28-
description:
29-
"Search the web. Backed by a keyless hosted MCP provider (Exa by default) — no local API key required unless a provider override with credentials is configured. Returns ranked results as text.",
28+
description: "Search the web; returns ranked results as text.",
3029
inputSchema: {
3130
type: "object",
3231
properties: {

0 commit comments

Comments
 (0)