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

Function isToolSearchToolAvailable

src/utils/toolSearch.ts:332–336  ·  view source on GitHub ↗
(
  tools: readonly { name: string }[],
)

Source from the content-addressed store, hash-verified

330 * @returns true if ToolSearchTool is in the tools list, false otherwise
331 */
332export function isToolSearchToolAvailable(
333 tools: readonly { name: string }[],
334): boolean {
335 return tools.some(tool => toolMatchesName(tool, TOOL_SEARCH_TOOL_NAME))
336}
337
338/**
339 * Calculate total deferred tool description size in characters.

Callers 4

isToolSearchEnabledFunction · 0.85
buildSchemaNotSentHintFunction · 0.85

Calls 1

toolMatchesNameFunction · 0.85

Tested by

no test coverage detected