Skip to content

Commit 5384a09

Browse files
authored
fix: add missing debug log in isSingularReadTool
1 parent eb4d369 commit 5384a09

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

internal/server/tool_registry.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ func getToolResponseFilter(cfg *config.Config, serverID, toolName string) string
7373
// return a single resource (e.g. get_*, *_read). List/search tools are treated
7474
// as collection tools even if they happen to return one item.
7575
func isSingularReadTool(toolName string) bool {
76-
return !strings.HasPrefix(toolName, "list_") && !strings.HasPrefix(toolName, "search_")
76+
singular := !strings.HasPrefix(toolName, "list_") && !strings.HasPrefix(toolName, "search_")
77+
logDifcLog.Printf("isSingularReadTool: toolName=%s, singular=%v", toolName, singular)
78+
return singular
7779
}
7880

7981
// registerAllTools fetches and registers tools from all backend servers

0 commit comments

Comments
 (0)