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

Function classifyMcpToolForCollapse

src/tools/MCPTool/classifyForCollapse.ts:594–603  ·  view source on GitHub ↗
(
  _serverName: string,
  toolName: string,
)

Source from the content-addressed store, hash-verified

592}
593
594export function classifyMcpToolForCollapse(
595 _serverName: string,
596 toolName: string,
597): { isSearch: boolean; isRead: boolean } {
598 const normalized = normalize(toolName)
599 return {
600 isSearch: SEARCH_TOOLS.has(normalized),
601 isRead: READ_TOOLS.has(normalized),
602 }
603}

Callers 1

isSearchOrReadCommandFunction · 0.85

Calls 2

normalizeFunction · 0.70
hasMethod · 0.45

Tested by

no test coverage detected