{"record":{"id":"49b9af7f1c9acdf9","repo":"googleapis/mcp-toolbox","slug":"unable-to-retrieve-s-source-for-tool-q","errorCode":null,"errorMessage":"unable to retrieve %s source for tool %q","messagePattern":"unable to retrieve (.+?) source for tool %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/group/group.go","lineNumber":148,"sourceCode":"}\n\n// ToolsetManifest builds a tools.ToolsetManifest for the group's tools, resolving\n// each declared tool name against toolsMap and generating its manifest from srcs.\n// The group holds tool names rather than tool pointers, so callers pass the\n// resolved tools and sources maps.\nfunc (g Group) ToolsetManifest(serverVersion string, mgr GroupManager) (tools.ToolsetManifest, error) {\n\ttoolsManifest := make(map[string]tools.Manifest, len(g.ToolNames))\n\tfor _, name := range g.ToolNames {\n\t\ttool, ok := mgr.GetTool(name)\n\t\tif !ok {\n\t\t\treturn tools.ToolsetManifest{}, fmt.Errorf(\"tool does not exist: %s\", name)\n\t\t}\n\t\tsrcName := tool.GetSourceName()\n\t\tvar src sources.Source\n\t\tif srcName != \"\" {\n\t\t\tsrc, ok = mgr.GetSource(srcName)\n\t\t\tif !ok {\n\t\t\t\treturn tools.ToolsetManifest{}, fmt.Errorf(\"unable to retrieve %s source for tool %q\", srcName, name)\n\t\t\t}\n\t\t}\n\t\tm, err := tool.Manifest(src)\n\t\tif err != nil {\n\t\t\treturn tools.ToolsetManifest{}, fmt.Errorf(\"error generating manifest for tool %q: %w\", name, err)\n\t\t}\n\t\ttoolsManifest[name] = m\n\t}\n\treturn tools.ToolsetManifest{ServerVersion: serverVersion, ToolsManifest: toolsManifest}, nil\n}\n","sourceCodeStart":130,"sourceCodeEnd":159,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/group/group.go#L130-L159","documentation":"Error \"unable to retrieve %s source for tool %q\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/group/group.go:148 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8cc6e09de2ad7b8bffc77751799585a1401a48eb","analyzedAt":"2026-09-05T01:10:36.887Z","contentChangedAt":"2026-09-05T01:10:36.887Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}