MCPcopy Create free account
hub / github.com/Noumena-Network/code / prompt

Function prompt

src/tools/WebFetchTool/WebFetchTool.ts:248–257  ·  view source on GitHub ↗
(_options)

Source from the content-addressed store, hash-verified

246 }
247 },
248 async prompt(_options) {
249 // Always include the auth warning regardless of whether ToolSearch is
250 // currently in the tools list. Conditionally toggling this prefix based
251 // on ToolSearch availability caused the tool description to flicker
252 // between SDK query() calls (when ToolSearch enablement varies due to
253 // MCP tool count thresholds), invalidating the Anthropic API prompt
254 // cache on each toggle — two consecutive cache misses per flicker event.
255 return `IMPORTANT: WebFetch WILL FAIL for authenticated or private URLs. Before using this tool, check if the URL points to an authenticated service (e.g. Google Docs, Confluence, Jira, GitHub). If so, look for a specialized MCP tool that provides authenticated access.
256${DESCRIPTION}`
257 },
258 async validateInput(input) {
259 const { url } = input
260 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected