{"record":{"id":"6dbd035a94b73f6a","repo":"googleapis/mcp-toolbox","slug":"error-getting-parameters-for-tool-q-w-6dbd03","errorCode":null,"errorMessage":"error getting parameters for tool %q: %w","messagePattern":"error getting parameters for tool %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/server/mcp/v20260728/manifests.go","lineNumber":134,"sourceCode":"// GenerateListToolsResult generates tools/list method result according to mcp schema\nfunc GenerateListToolsResult(pMgr *primitives.PrimitiveManager, g group.Group, urlParams map[string]string, supportsSecureParams bool) (ListToolsResult, error) {\n\tmcpManifest := make([]Tool, 0, len(g.ToolNames))\n\tfor _, toolName := range g.ToolNames {\n\t\ttool, ok := pMgr.GetTool(toolName)\n\t\tif !ok {\n\t\t\treturn ListToolsResult{}, fmt.Errorf(\"tool does not exist: %s\", toolName)\n\t\t}\n\t\tsrcName := tool.GetSourceName()\n\t\tvar src sources.Source\n\t\tif srcName != \"\" {\n\t\t\tsrc, ok = pMgr.GetSource(srcName)\n\t\t\tif !ok {\n\t\t\t\treturn ListToolsResult{}, fmt.Errorf(\"unable to retrieve %s source for tool %q\", srcName, tool.GetName())\n\t\t\t}\n\t\t}\n\t\tparams, err := tool.GetParameters(src)\n\t\tif err != nil {\n\t\t\treturn ListToolsResult{}, fmt.Errorf(\"error getting parameters for tool %q: %w\", toolName, err)\n\t\t}\n\n\t\t// Skip a Tool that requires secure params extension if the client doesn't support it.\n\t\tif tool.HasSecureParams() && !supportsSecureParams {\n\t\t\tcontinue\n\t\t}\n\t\ttoolManifest := generateToolManifest(toolName, tool.GetDescription(), tool.GetAuthRequired(), params, tool.GetAnnotations(src), urlParams)\n\t\tmcpManifest = append(mcpManifest, toolManifest)\n\t}\n\tres := ListToolsResult{\n\t\tTools: mcpManifest,\n\t\tResult: Result{\n\t\t\tResultType: resultTypeComplete,\n\t\t},\n\t\tCacheableResult: CacheableResult{\n\t\t\tTtlMs:      g.GetTTLMs(),\n\t\t\tCacheScope: cacheScope(g.GetCacheScope()),\n\t\t},","sourceCodeStart":116,"sourceCodeEnd":152,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/server/mcp/v20260728/manifests.go#L116-L152","documentation":"Error \"error getting parameters for tool %q: %w\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/server/mcp/v20260728/manifests.go:134 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"}